projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoint list ABI: fix initialization of anonymous file
[lttng-modules.git]
/
ltt-debugfs-abi.c
diff --git
a/ltt-debugfs-abi.c
b/ltt-debugfs-abi.c
index c5ca63253b45575cca7e9e2c1f69b8c5a2b16e8d..5bfd1d6883ac9114e77e66cf006fce9a51c25874 100644
(file)
--- a/
ltt-debugfs-abi.c
+++ b/
ltt-debugfs-abi.c
@@
-95,6
+95,7
@@
int lttng_abi_tracepoint_list(void)
ret = file_fd;
goto fd_error;
}
ret = file_fd;
goto fd_error;
}
+
tracepoint_list_file = anon_inode_getfile("[lttng_session]",
<tng_tracepoint_list_fops,
NULL, O_RDWR);
tracepoint_list_file = anon_inode_getfile("[lttng_session]",
<tng_tracepoint_list_fops,
NULL, O_RDWR);
@@
-102,9
+103,18
@@
int lttng_abi_tracepoint_list(void)
ret = PTR_ERR(tracepoint_list_file);
goto file_error;
}
ret = PTR_ERR(tracepoint_list_file);
goto file_error;
}
+ ret = lttng_tracepoint_list_fops.open(NULL, tracepoint_list_file);
+ if (ret < 0)
+ goto open_error;
fd_install(file_fd, tracepoint_list_file);
fd_install(file_fd, tracepoint_list_file);
+ if (file_fd < 0) {
+ ret = file_fd;
+ goto fd_error;
+ }
return file_fd;
return file_fd;
+open_error:
+ fput(tracepoint_list_file);
file_error:
put_unused_fd(file_fd);
fd_error:
file_error:
put_unused_fd(file_fd);
fd_error:
This page took
0.023888 seconds
and
4
git commands to generate.