drm/msm: fix potential NULL pointer dereference
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 11 Sep 2013 14:09:02 +0000 (22:09 +0800)
committerRob Clark <robdclark@gmail.com>
Thu, 12 Sep 2013 14:32:12 +0000 (10:32 -0400)
commitaea6a64c38725b6fb30738a31695ef81af3079c3
tree47fe844d0c7b0d649f25fbfbb6f69d4e2bd15f43
parent6b8819c811c2a80a7e5896b4d1e2580be825d590
drm/msm: fix potential NULL pointer dereference

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
drivers/gpu/drm/msm/msm_gpu.c