diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-08-27 22:04:30 (GMT) |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-09-02 08:29:03 (GMT) |
commit | 02c0267a40c876a4d70f2000f21fe9ff89fb988e (patch) | |
tree | d585697289adfdab1becc13b65c9e1a62dacf3b7 /drivers/media/video/dabusb.c | |
parent | 0ed97ee470c36e05bcaad36c4fb4c501f383ce63 (diff) | |
download | linux-02c0267a40c876a4d70f2000f21fe9ff89fb988e.tar.xz |
dabusb_fpga_download(): fix a memory leak
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: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/media/video/dabusb.c')
-rw-r--r-- | drivers/media/video/dabusb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/dabusb.c b/drivers/media/video/dabusb.c index 48f4b92..79faedf5 100644 --- 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; } |