]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit59c0d7b1e46cbadca60f98f87906dd5f2d681764
tree0a3bab3cd59d9e61c70bf8eee78546367c812955
parent699dcffc5244388a38f6323afc15ed3833c1ad96
[media] mn88472: Fix possible leak in mn88472_init()

Commit 307e95c92257 ("[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