Skip to content

Commit

Permalink
V4L/DVB (8843): tda10048_firmware_upload(): fix a memory leak
Browse files Browse the repository at this point in the history
This patch fixes a memory leak ("fw" wasn't freed).

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 8da9bae commit 877b5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/tda10048.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ static int tda10048_firmware_upload(struct dvb_frontend *fe)

if (fw->size != TDA10048_DEFAULT_FIRMWARE_SIZE) {
printk(KERN_ERR "%s: firmware incorrect size\n", __func__);
return -EIO;
ret = -EIO;
} else {
printk(KERN_INFO "%s: firmware uploading\n", __func__);

Expand Down

0 comments on commit 877b5f4

Please sign in to comment.