mfd: sta2x11: Fix potential NULL pointer dereference in __sta2x11_mfd_mask()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 2 Dec 2012 13:36:22 +0000 (08:36 -0500)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 2 Dec 2012 23:46:49 +0000 (00:46 +0100)
commit709edecd4eaaa210ea9296c6d8ec5e9cedf1abe3
treeb2f5323d5bd682ef8040db4e6d1642da5dc2767e
parent3748f193552ba21a8239c56eb616d946c47607e7
mfd: sta2x11: Fix potential NULL pointer dereference in __sta2x11_mfd_mask()

The dereference to 'mfd' should be moved below the NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/sta2x11-mfd.c