drm: Check if the allocation has succeeded before dereferencing newmode
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 3 Mar 2014 23:59:07 +0000 (23:59 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Mar 2014 10:23:07 +0000 (11:23 +0100)
commit409bbf1e3da29aaf57b520e29f904db9c7c2475e
tree03c20d00e2f73e69d798a44720e746b104bb3c39
parent366d48070008a0846a099b23efef297451b05640
drm: Check if the allocation has succeeded before dereferencing newmode

We allocate memory in drm_display_mode_from_vic_index() and use it
without checking the pointer is valid. Fix that.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_edid.c
This page took 0.045605 seconds and 5 git commands to generate.