]> git.baikalelectronics.ru Git - kernel.git/commit
drm: add assertion for checking null edid to drm_edid_block_valid
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 2 Jul 2013 08:57:04 +0000 (17:57 +0900)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Jul 2013 00:52:50 +0000 (10:52 +1000)
commit8a62f3b21291417b1beae5f4fabdbae343ffbf05
treee907ef6b4c9a7e7129a431e8a2b7275ce0e9975e
parent316d93bcf26f4c21bc1b4508d610de3f373c9195
drm: add assertion for checking null edid to drm_edid_block_valid

If raw_edid of drm_edid_block_vaild() is null, it will crash, so
checking in bad label is removed and instead assertion is added at
the top of the function.
The type of return for the function is bool, so it fixes to return
true and false instead of 1 and 0.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c