Skip to content

Commit

Permalink
media: dvb-frontends: fix leak of memory fw
Browse files Browse the repository at this point in the history
[ Upstream commit a15fe8d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Yan Lei authored and gregkh committed Dec 31, 2022
1 parent a96841f commit 438cd29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/dvb-frontends/bcm3510.c
Expand Up @@ -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;
Expand Down

0 comments on commit 438cd29

Please sign in to comment.