projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6745ea4
)
media: dvb-frontends: fix leak of memory fw
author
Yan Lei
<yan_lei@dahuatech.com>
Sun, 10 Apr 2022 06:19:25 +0000
(07:19 +0100)
committer
Mauro Carvalho Chehab
<mchehab@kernel.org>
Fri, 25 Nov 2022 10:00:45 +0000
(10:00 +0000)
Link:
https://lore.kernel.org/linux-media/20220410061925.4107-1-chinayanlei2002@163.com
Signed-off-by: Yan Lei <yan_lei@dahuatech.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/dvb-frontends/bcm3510.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb-frontends/bcm3510.c
b/drivers/media/dvb-frontends/bcm3510.c
index
da0ff7b
..
68b92b4
100644
(file)
--- a/
drivers/media/dvb-frontends/bcm3510.c
+++ b/
drivers/media/dvb-frontends/bcm3510.c
@@
-649,6
+649,7
@@
static int bcm3510_download_firmware(struct dvb_frontend* fe)
deb_info("firmware chunk, addr: 0x%04x, len: 0x%04x, total length: 0x%04zx\n",addr,len,fw->size);
if ((ret = bcm3510_write_ram(st,addr,&b[i+4],len)) < 0) {
err("firmware download failed: %d\n",ret);
+ release_firmware(fw);
return ret;
}
i += 4 + len;