Commit abae41e6 authored by Julia Lawall's avatar Julia Lawall Committed by Greg Kroah-Hartman

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

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3eb23422
...@@ -301,7 +301,7 @@ static int do_devconfig_ioctl(struct comedi_device *dev, ...@@ -301,7 +301,7 @@ static int do_devconfig_ioctl(struct comedi_device *dev,
if (ret == 0) { if (ret == 0) {
if (!try_module_get(dev->driver->module)) { if (!try_module_get(dev->driver->module)) {
comedi_device_detach(dev); comedi_device_detach(dev);
return -ENOSYS; ret = -ENOSYS;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment