diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2016-06-02 15:32:55 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-13 01:14:38 +0200 |
commit | 25f1ec2462f4afe544c9374ef4dbb4f5f0a3b701 (patch) | |
tree | 2bb5b19412c13900c958da53a70f48a395fad560 | |
parent | [media] cec-adap.c: work around gcc-4.4.4 anon union initializer bug (diff) | |
download | linux-25f1ec2462f4afe544c9374ef4dbb4f5f0a3b701.tar.xz linux-25f1ec2462f4afe544c9374ef4dbb4f5f0a3b701.zip |
[media] c8sectpfe: fix memory leak
We have assigned memory while requesting the firmware but if the sanity
check fails then we are not releasing the firmware.
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c index 7dddf77a62cf..30c148b9d65e 100644 --- a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c +++ b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c @@ -1161,6 +1161,7 @@ static int load_c8sectpfe_fw(struct c8sectpfei *fei) if (err) { dev_err(fei->dev, "c8sectpfe_elf_sanity_check failed err=(%d)\n" , err); + release_firmware(fw); return err; } |