forked from MIrrors/gasket-driver
staging: gasket: gasket_handle_ioctl fix ioctl exit trace param
Pass the return value from the device ioctl permissions callback to the tracepoint when the callback returns an error. Reported-by: Dmitry Torokhov <dtor@chromium.org> Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Alex Van Damme
parent
22f2487a18
commit
98e0a3cbf4
@@ -65,7 +65,7 @@ long gasket_handle_ioctl(struct file *filp, uint cmd, void __user *argp)
|
||||
if (ioctl_permissions_cb) {
|
||||
retval = ioctl_permissions_cb(filp, cmd, argp);
|
||||
if (retval < 0) {
|
||||
trace_gasket_ioctl_exit(-EPERM);
|
||||
trace_gasket_ioctl_exit(retval);
|
||||
return retval;
|
||||
} else if (retval == 0) {
|
||||
trace_gasket_ioctl_exit(-EPERM);
|
||||
|
||||
Reference in New Issue
Block a user