V4L/DVB (7328): usb/opera1.c: fix a memory leak

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>
This commit is contained in:
Adrian Bunk
2008-02-27 21:21:15 -03:00
committed by Mauro Carvalho Chehab
parent 46cb57e628
commit 77596058e1

View File

@@ -478,9 +478,9 @@ static int opera1_xilinx_load_firmware(struct usb_device *dev,
err("could not restart the USB controller CPU."); err("could not restart the USB controller CPU.");
ret = -EINVAL; ret = -EINVAL;
} }
kfree(p);
} }
} }
kfree(p);
if (fw) { if (fw) {
release_firmware(fw); release_firmware(fw);
} }