drm/edid: Fix potential memory leak in edid_load()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Tue, 7 Aug 2012 12:23:06 +0000 (12:23 +0000)
committerDave Airlie <airlied@gmail.com>
Fri, 10 Aug 2012 10:30:04 +0000 (20:30 +1000)
commitf7b83b908fbecadefa73c0d76b9c719d09c1d96d
tree9bbb80330ae2e7a3f663061c50efaa9d987ed6fe
parent959f724728b6a1cb5185230972119dd7bc8b610e
drm/edid: Fix potential memory leak in edid_load()

Do not leak memory by updating pointer with potentially
NULL realloc return value.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid_load.c