[media] dvb-frontends: fix potential NULL pointer dereference in stv0900_set_mclk()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Oct 2012 11:35:56 +0000 (08:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Oct 2012 18:20:26 +0000 (16:20 -0200)
commitb0f9bf369f34791cf8271be8c610a1e50ead6002
treee1f36f99a442a133b09a181d2a8e13d3afdaa6fa
parent8163ec0b2648c2f7e84edb969dde537ec45f1666
[media] dvb-frontends: fix potential NULL pointer dereference in stv0900_set_mclk()

The dereference should be moved below the NULL test.
dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-frontends/stv0900_core.c