Skip to content

Commit

Permalink
V4L/DVB (8844): dabusb_fpga_download(): fix a memory leak
Browse files Browse the repository at this point in the history
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@redhat.com>
  • Loading branch information
Adrian Bunk authored and Mauro Carvalho Chehab committed Sep 3, 2008
1 parent 877b5f4 commit 5d8538c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/video/dabusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5d8538c

Please sign in to comment.