projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd9c2e
)
V4L/DVB (10229): ivtv: fix memory leak
author
Hans Verkuil
<hverkuil@xs4all.nl>
Mon, 12 Jan 2009 21:10:43 +0000
(18:10 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 29 Jan 2009 11:19:29 +0000
(09:19 -0200)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ivtv/ivtv-driver.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/ivtv/ivtv-driver.c
b/drivers/media/video/ivtv/ivtv-driver.c
index e8e5921cdc346dd8b26efa1ad93cc01f1791acdb..c46c990987f9b417a263e51782eb0ec3915b05a0 100644
(file)
--- a/
drivers/media/video/ivtv/ivtv-driver.c
+++ b/
drivers/media/video/ivtv/ivtv-driver.c
@@
-949,8
+949,10
@@
static int __devinit ivtv_probe(struct pci_dev *dev,
itv->instance = atomic_inc_return(&ivtv_instance) - 1;
retval = v4l2_device_register(&dev->dev, &itv->device);
- if (retval)
+ if (retval) {
+ kfree(itv);
return retval;
+ }
/* "ivtv + PCI ID" is a bit of a mouthful, so use
"ivtv + instance" instead. */
snprintf(itv->device.name, sizeof(itv->device.name),