aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_fops.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-04-22 13:37:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-01 15:12:54 +0800
commit512a8016c25d2045630b8933e7882169f7a98751 (patch)
tree275cfea2d91d0d72dd10029d5980eff1acf8d56d /drivers/staging/comedi/comedi_fops.c
parentee9ffef206a54067e6fa728756c8b2ce10f31acf (diff)
downloadkernel_samsung_smdk4412-512a8016c25d2045630b8933e7882169f7a98751.zip
kernel_samsung_smdk4412-512a8016c25d2045630b8933e7882169f7a98751.tar.gz
kernel_samsung_smdk4412-512a8016c25d2045630b8933e7882169f7a98751.tar.bz2
drivers/staging/comedi/comedi_fops.c: add missing vfree
commit abae41e6438b798e046d721b6ccdd55b4a398170 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>
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 63e50f7..ea8d109 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/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;
}
}