diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-28 01:04:30 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-28 01:04:30 +0300 |
commit | e2d585a21bee0e60ab528e5c7bf66b8bdacf170c (patch) | |
tree | f529b36e546d4926d016441610458d7723dd1b92 /linux | |
parent | eb79d0fee68a8f41047ec0b2717d2130c752a71d (diff) | |
download | mediapointer-dvb-s2-e2d585a21bee0e60ab528e5c7bf66b8bdacf170c.tar.gz mediapointer-dvb-s2-e2d585a21bee0e60ab528e5c7bf66b8bdacf170c.tar.bz2 |
dabusb_fpga_download(): fix a memory leak
From: Adrian Bunk <bunk@kernel.org>
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@infradead.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/dabusb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/dabusb.c b/linux/drivers/media/video/dabusb.c index f23e6b84d..4acba6e92 100644 --- a/linux/drivers/media/video/dabusb.c +++ b/linux/drivers/media/video/dabusb.c @@ -451,6 +451,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; } |