projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: RCU unlock out of error path
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
channel.c
diff --git
a/src/bin/lttng-sessiond/channel.c
b/src/bin/lttng-sessiond/channel.c
index d07e1d901fa3ba10170cb259411c105689a6a4a4..ae53c672c6c2a5792ba981324f37097e7f596f6d 100644
(file)
--- a/
src/bin/lttng-sessiond/channel.c
+++ b/
src/bin/lttng-sessiond/channel.c
@@
-240,6
+240,11
@@
int channel_ust_create(struct ltt_ust_session *usess, int domain,
attr = defattr;
}
attr = defattr;
}
+ if (attr->attr.subbuf_size < DEFAULT_UST_CHANNEL_SUBBUF_SIZE) {
+ ret = LTTNG_ERR_INVALID;
+ goto error;
+ }
+
/*
* Validate UST buffer size and number of buffers: must both be
* power of 2 and nonzero. We validate right here for UST,
/*
* Validate UST buffer size and number of buffers: must both be
* power of 2 and nonzero. We validate right here for UST,
This page took
0.023028 seconds
and
4
git commands to generate.