drm: Make drm_fb_unregister/remove accept NULL fb
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Aug 2015 13:45:11 +0000 (15:45 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Sep 2015 11:45:50 +0000 (13:45 +0200)
commita39a357c6ca3c88ad64e9b51bd7607c06cd6d35d
treeb1686469b650f06e45b0989648cfc2c9ea5b3bd5
parentb7bdf0a87add0fead1550533e328a290d8f9da6c
drm: Make drm_fb_unregister/remove accept NULL fb

These functions are used by drivers to release fbdev emulation
buffers. We need to make them resilient to NULL pointers to
make the fbdev compile/runtime knobs not cause Oopses on module
unload.

Cc: Archit Taneja <architt@codeaurora.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c