summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-02-27 21:21:15 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-02-27 21:21:15 +0000
commit7699d47567a3d1451e5a68442c8e8c559d31e642 (patch)
tree2548d2379192b0214e85302c0007a674e2a01894 /linux
parent0ce053b44999f989285081055b1256eeeaf60de5 (diff)
downloadmediapointer-dvb-s2-7699d47567a3d1451e5a68442c8e8c559d31e642.tar.gz
mediapointer-dvb-s2-7699d47567a3d1451e5a68442c8e8c559d31e642.tar.bz2
usb/opera1.c: fix a memory leak
From: Adrian Bunk <bunk@kernel.org> 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>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/opera1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/opera1.c b/linux/drivers/media/dvb/dvb-usb/opera1.c
index 27d7103c9..78f55fd69 100644
--- a/linux/drivers/media/dvb/dvb-usb/opera1.c
+++ b/linux/drivers/media/dvb/dvb-usb/opera1.c
@@ -489,9 +489,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);
}