sdl: Fix crash when calling sdl_switch() with NULL surface
commitd28d6505bd72f0d6e3e7a968c60c27f893da976e
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Jul 2014 05:11:22 +0000 (7 15:11 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 12 Mar 2015 11:54:23 +0000 (12 12:54 +0100)
tree8fde1da56a7e4e1682549324159ae80c28fe4951
parent5f5d82ddf1789d32d8921c022261be59e4dcd283
sdl: Fix crash when calling sdl_switch() with NULL surface

This happens for example when doing ctrl-alt-u and segfaults

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/sdl.c