projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: mm/page_alloc: fix tracepoint mm_page_alloc_zone_locked() (v5.19)
[lttng-modules.git]
/
src
/
lttng-abi.c
diff --git
a/src/lttng-abi.c
b/src/lttng-abi.c
index f8004e9b708a6a840b162a6fb6f99e70706aa444..9b1cceac0d99ce7bd2adc91356fc7fd64ec504bc 100644
(file)
--- a/
src/lttng-abi.c
+++ b/
src/lttng-abi.c
@@
-1016,7
+1016,7
@@
ssize_t lttng_event_notifier_group_notif_read(struct file *filp, char __user *us
/* Finish copy of previous record */
if (*ppos != 0) {
/* Finish copy of previous record */
if (*ppos != 0) {
- if (
read_count < count
) {
+ if (
count != 0
) {
len = chan->iter.len_left;
read_offset = *ppos;
goto skip_get_next;
len = chan->iter.len_left;
read_offset = *ppos;
goto skip_get_next;
@@
-1096,7
+1096,8
@@
nodata:
chan->iter.len_left = 0;
put_record:
chan->iter.len_left = 0;
put_record:
- lib_ring_buffer_put_current_record(buf);
+ if (*ppos == 0)
+ lib_ring_buffer_put_current_record(buf);
return read_count;
}
return read_count;
}
This page took
0.023626 seconds
and
4
git commands to generate.