summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-08-28 01:04:30 +0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-08-28 01:04:30 +0300
commite2d585a21bee0e60ab528e5c7bf66b8bdacf170c (patch)
treef529b36e546d4926d016441610458d7723dd1b92 /linux
parenteb79d0fee68a8f41047ec0b2717d2130c752a71d (diff)
downloadmediapointer-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.c1
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;
}