From 67a4dc6e74168941d4a8d8c4e7d2baf30744a25e Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Tue, 18 Jul 2006 16:19:48 -0300 Subject: videodev: remove bad kfree() From: Michael Krufky This fixes a previous commit -- We shouldnt kfree(&vfd->class_dev) inside video_register_device, since the resource is not allocated inside this function. Signed-off-by: Michael Krufky --- linux/drivers/media/video/videodev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c index b13bbfe61..a53ba94b3 100644 --- a/linux/drivers/media/video/videodev.c +++ b/linux/drivers/media/video/videodev.c @@ -1602,7 +1602,6 @@ int video_register_device(struct video_device *vfd, int type, int nr) if (ret) { printk(KERN_ERR "%s: class_device_register failed\n", __FUNCTION__); - kfree(&vfd->class_dev); return ret; } video_device_create_file(vfd, &class_device_attr_name); -- cgit v1.2.3