Skip to content

Commit

Permalink
drivers/staging/comedi/comedi_fops.c: add missing vfree
Browse files Browse the repository at this point in the history
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 May 30, 2012
1 parent 2f72b41 commit a756191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/comedi_fops.c
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit a756191

Please sign in to comment.