]> git.baikalelectronics.ru Git - kernel.git/commit
[media] as102: fix potential double free in as102_fw_upload()
authorChristian Engelmayer <cengelma@gmx.at>
Fri, 23 Oct 2015 21:26:18 +0000 (19:26 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 11:16:10 +0000 (09:16 -0200)
commit5fc3af71855461467f8bcf7d4949561ef3ead160
tree664441a7292d29d791d905293f70709cc3b435a6
parentf7c35150b8ecde537baa0e750261aa3450dfd787
[media] as102: fix potential double free in as102_fw_upload()

In case the request to locate the firmware file part 2 fails, the error
path releases the already freed firmware memory location again. Thus
reset the firmware pointer to NULL after releasing firmware file part 1.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/as102/as102_fw.c