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>
This commit is contained in:
parent
3eb23422b2
commit
abae41e643
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue