Permalink
Browse files

drivers/staging/comedi/comedi_fops.c: add missing vfree

commit abae41e upstream.

aux_free is freed on all other exits from the function.  By removing the
return, we can benefit from the vfree already at the end of the function.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
  • Loading branch information...
JuliaLawall authored and bwhacks committed Apr 22, 2012
1 parent 2f72b41 commit a756191d7f7f975492a9cc0f43829fcdbe366fe5
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/staging/comedi/comedi_fops.c
@@ -280,7 +280,7 @@ static int do_devconfig_ioctl(struct comedi_device *dev,
if (ret == 0) {
if (!try_module_get(dev->driver->module)) {
comedi_device_detach(dev);
- return -ENOSYS;
+ ret = -ENOSYS;
}
}

0 comments on commit a756191

Please sign in to comment.