drm/atomic: Don't try to free a NULL state
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Mon, 30 Mar 2015 11:05:43 +0000 (14:05 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 30 Mar 2015 14:52:09 +0000 (16:52 +0200)
commita0211bb482c346820506c546a6a58b8357999a99
treeaa31defb713405879429c1aa9b96a92ba2970462
parent8a5c0bde54ca0354ae8b7e9d37d17bc514aa6c42
drm/atomic: Don't try to free a NULL state

Consistently with other free functions, handle the NULL case without
oopsing.

Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic.c