提交 abae41e6 编写于 作者: J Julia Lawall 提交者: 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: NJulia Lawall <Julia.Lawall@lip6.fr>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 3eb23422
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册