[PATCH] drm/msm: fix potential NULL pointer dereference

2013-09-12 Thread Wei Yongjun
From: Wei Yongjun The dereference to 'pdata' should be moved below the NULL test. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/msm/msm_gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index e1e1ec9..6b50

Re: [PATCH] drm/msm: fix potential NULL pointer dereference

2013-09-11 Thread Rob Clark
On Wed, Sep 11, 2013 at 10:09 AM, Wei Yongjun wrote: > From: Wei Yongjun > > The dereference to 'pdata' should be moved below the NULL test. > > Signed-off-by: Wei Yongjun Acked-by: Rob Clark > --- > drivers/gpu/drm/msm/msm_gpu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >