diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-19 09:44:58 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-20 15:40:56 +1000 |
commit | 8c5eaca012f963fa9724665f8a0eca19e3cb7d2a (patch) | |
tree | 0cb9fff757da368a457aba0580e9027048868313 /REPORTING-BUGS | |
parent | e655d122a71332d0d26b5c0909eb395da31af0c0 (diff) | |
download | op-kernel-dev-8c5eaca012f963fa9724665f8a0eca19e3cb7d2a.zip op-kernel-dev-8c5eaca012f963fa9724665f8a0eca19e3cb7d2a.tar.gz |
drm/fb_helper: Fix potential NULL pointer dereference
kcalloc returns NULL on failure. Hence check for the return value
and exit on error to avoid NULL pointer dereference.
Fixes the following smatch errors:
drivers/gpu/drm/drm_fb_helper.c:1271 drm_setup_crtcs() error:
potential null dereference 'modes'. (kcalloc returns null)
drivers/gpu/drm/drm_fb_helper.c:1272 drm_setup_crtcs() error:
potential null dereference 'crtcs'. (kcalloc returns null)
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions