The patch number 11995 was added via Mauro Carvalho Chehab <mche...@redhat.com> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: Linux Media Mailing List <linux-me...@vger.kernel.org> ------ From: Figo.zhang <figo1...@gmail.com> 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: Figo.zhang <figo1...@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com> --- linux/drivers/media/video/zr364xx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff -r 770e035ab1bd -r 765c4db50c93 linux/drivers/media/video/zr364xx.c --- a/linux/drivers/media/video/zr364xx.c Fri Jun 05 10:56:18 2009 +0000 +++ b/linux/drivers/media/video/zr364xx.c Sat Jun 06 09:16:21 2009 +0000 @@ -883,9 +883,11 @@ static void zr364xx_disconnect(struct us 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; } --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/765c4db50c937a7f1be8bf0505b55dcf60fb10a1 _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits