diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-08-28 00:04:30 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-09-02 10:29:03 +0200 |
commit | 02c0267a40c876a4d70f2000f21fe9ff89fb988e (patch) | |
tree | d585697289adfdab1becc13b65c9e1a62dacf3b7 /drivers/media/video/dabusb.c | |
parent | Remove '#include <stddef.h>' from mm/page_isolation.c (diff) | |
download | linux-02c0267a40c876a4d70f2000f21fe9ff89fb988e.tar.xz linux-02c0267a40c876a4d70f2000f21fe9ff89fb988e.zip |
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 48f4b92a8f8b..79faedf58521 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; } |