drm: Fix an error pointer dereference()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Dec 2018 07:00:38 +0000 (10:00 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Dec 2018 09:47:17 +0000 (10:47 +0100)
commit705c8160ce88825d2491aa55fa9da4fa79204c10
tree3fa03f7a8f04e2ecf00986c142bfc3f421d595cc
parent706246c761ddd394e2b02f6dba2357d8eb5a7b5d
drm: Fix an error pointer dereference()

The drm_mode_create_tile_group() is only called from
drm_parse_tiled_block() and the caller expects it to return a NULL on
error.  In other words, this function should match
drm_mode_get_tile_group().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181217065733.GA12159@kadam
drivers/gpu/drm/drm_connector.c