mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
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>
This commit is contained in:
parent
0ed97ee470
commit
02c0267a40
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user