]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26b3f8f905c1b8fd71ad9277157e109a42e6b29e
tree9bbb80330ae2e7a3f663061c50efaa9d987ed6fe
parent00cf370f2522307d1b8b577a113e62666604b79a
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