drm/mm: avoid possible null pointer dereference
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 18 May 2016 20:17:19 +0000 (22:17 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 May 2016 12:56:11 +0000 (14:56 +0200)
commitb80d3942329dcd43580adc3f7c0a098515b5feec
tree59cf8fec7c96db9ff43ad3eeec930a68ec5dbf31
parentd28ab95b3cdc502b103bb78fa5f07cb88dbf1161
drm/mm: avoid possible null pointer dereference

Do not dereference node before the check if node is NULL.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1463602639-4861-1-git-send-email-xypron.glpk@gmx.de
drivers/gpu/drm/drm_mm.c