Commit de99d76a authored by Figo.zhang's avatar Figo.zhang Committed by 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: default avatarFigo.zhang <figo1802@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment