]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mn88472: Fix possible leak in mn88472_init()
authorChristian Engelmayer <cengelma@gmx.at>
Sat, 2 May 2015 21:59:29 +0000 (18:59 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 12 May 2015 16:26:30 +0000 (13:26 -0300)
commitd6adc54df17091eed032165b60862a3ca6e13008
tree0a3bab3cd59d9e61c70bf8eee78546367c812955
parent6e42a23458c64a8681dce2406630bb1b70b6ada5
[media] mn88472: Fix possible leak in mn88472_init()

Commit 7b9c2617d5c3 ("[media] mn88472: implement firmware parity check")
introduced the usage of exit paths that do not free the already allocated
firmware data in case the parity handling fails. Go through the correct
exit paths. Detected by Coverity CID 1295989.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Acked-by: Benjamin Larsson <benjamin@southpole.se>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/mn88472/mn88472.c