提交 de99d76a 编写于 作者: F Figo.zhang 提交者: Mauro Carvalho Chehab

V4L/DVB (11995): zr364xx.c: vfree does its own NULL check

vfree() does it's own NULL checking, no need for explicit check before
calling it.
Signed-off-by: NFigo.zhang <figo1802@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 52a85e17
......@@ -882,9 +882,11 @@ static void zr364xx_disconnect(struct usb_interface *intf)
video_unregister_device(cam->vdev);
cam->vdev = NULL;
kfree(cam->buffer);
if (cam->framebuf)
vfree(cam->framebuf);
cam->buffer = NULL;
vfree(cam->framebuf);
cam->framebuf = NULL;
kfree(cam);
cam = NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册