summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_fops.c
diff options
context:
space:
mode:
authorJulia Lawall2012-04-22 13:37:09 +0200
committerGreg Kroah-Hartman2012-04-24 20:38:34 +0200
commitabae41e6438b798e046d721b6ccdd55b4a398170 (patch)
treea1c0f4659a75e48ee86015eadc1467ac8cd2c7a8 /drivers/staging/comedi/comedi_fops.c
parentstaging: vt6656: trivial whitespace cleanups to ioctl.c (diff)
downloadkernel-qcow2-linux-abae41e6438b798e046d721b6ccdd55b4a398170.tar.gz
kernel-qcow2-linux-abae41e6438b798e046d721b6ccdd55b4a398170.tar.xz
kernel-qcow2-linux-abae41e6438b798e046d721b6ccdd55b4a398170.zip
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: Julia Lawall <Julia.Lawall@lip6.fr> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
-rw-r--r--drivers/staging/comedi/comedi_fops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index a0861fbc980e..06fc6569c859 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -301,7 +301,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;
}
}