Skip to content

Commit

Permalink
V4L/DVB (7328): usb/opera1.c: fix a memory leak
Browse files Browse the repository at this point in the history
This patch fixes a memory leak in the "testval == 0x67" case spotted by
the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Adrian Bunk authored and Mauro Carvalho Chehab committed Mar 20, 2008
1 parent 46cb57e commit 7759605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/opera1.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,9 @@ static int opera1_xilinx_load_firmware(struct usb_device *dev,
err("could not restart the USB controller CPU.");
ret = -EINVAL;
}
kfree(p);
}
}
kfree(p);
if (fw) {
release_firmware(fw);
}
Expand Down

0 comments on commit 7759605

Please sign in to comment.