projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
877b5f4
)
V4L/DVB (8844): dabusb_fpga_download(): fix a memory leak
author
Adrian Bunk
<bunk@kernel.org>
Wed, 3 Sep 2008 20:12:25 +0000
(17:12 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 3 Sep 2008 21:37:55 +0000
(18:37 -0300)
This patch fixes a memory leak in an error path.
Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/dabusb.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/dabusb.c
b/drivers/media/video/dabusb.c
index
48f4b92
..
79faedf
100644
(file)
--- a/
drivers/media/video/dabusb.c
+++ b/
drivers/media/video/dabusb.c
@@
-403,6
+403,7
@@
static int dabusb_fpga_download (pdabusb_t s, const char *fname)
ret = request_firmware(&fw, "dabusb/bitstream.bin", &s->usbdev->dev);
if (ret) {
err("Failed to load \"dabusb/bitstream.bin\": %d\n", ret);
+ kfree(b);
return ret;
}