提交 877b5f4e 编写于 作者: A Adrian Bunk 提交者: Mauro Carvalho Chehab

V4L/DVB (8843): tda10048_firmware_upload(): fix a memory leak

This patch fixes a memory leak ("fw" wasn't freed).
Reported-by: NAdrian Bunk <bunk@kernel.org>
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 8da9bae3
......@@ -303,7 +303,7 @@ static int tda10048_firmware_upload(struct dvb_frontend *fe)
if (fw->size != TDA10048_DEFAULT_FIRMWARE_SIZE) {
printk(KERN_ERR "%s: firmware incorrect size\n", __func__);
return -EIO;
ret = -EIO;
} else {
printk(KERN_INFO "%s: firmware uploading\n", __func__);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册