[media] xc5000: use after free in release()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 25 Sep 2014 11:40:08 +0000 (08:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 24 Oct 2014 11:29:28 +0000 (09:29 -0200)
commit4961a5323f5d873e2170c5ef4f48538930e6df3e
tree351ce7b3b1490dc7b97268d85b2d6f5061923086
parent34d7c248ad28c5d462182c5063523023604efc12
[media] xc5000: use after free in release()

I moved the call to hybrid_tuner_release_state(priv) after
"priv->firmware" dereference.

Fixes: 5264a522a597 ('[media] media: tuner xc5000 - release firmwware from xc5000_release()')

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/tuners/xc5000.c