diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-07-18 16:19:48 -0300 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-07-18 16:19:48 -0300 |
commit | 67a4dc6e74168941d4a8d8c4e7d2baf30744a25e (patch) | |
tree | 76d5e768fa9b605938f13b105bb7c1a1d6dcc38a /linux/drivers/media/video/videodev.c | |
parent | 8c3a370627231c326b6159b89da78bcf5f0fda86 (diff) | |
download | mediapointer-dvb-s2-67a4dc6e74168941d4a8d8c4e7d2baf30744a25e.tar.gz mediapointer-dvb-s2-67a4dc6e74168941d4a8d8c4e7d2baf30744a25e.tar.bz2 |
videodev: remove bad kfree()
From: Michael Krufky <mkrufky@linuxtv.org>
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 <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/videodev.c')
-rw-r--r-- | linux/drivers/media/video/videodev.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |