Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77596058 authored by Adrian Bunk's avatar Adrian Bunk Committed by Mauro Carvalho Chehab
Browse files

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: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 46cb57e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}