staging: omapdrm: fix crash when freeing bad fb
authorAndy Gross <andy.gross@ti.com>
Thu, 24 May 2012 16:44:22 +0000 (11:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 15:42:09 +0000 (08:42 -0700)
commitafb6a6a01b51b6712485ea045e2b882061d250d9
treeabbcf2a97a028eabfcd145d6b53cf12806f986b6
parent279bf2e57c30c9a4482b2b6ede11b31c41e35e78
staging: omapdrm: fix crash when freeing bad fb

During unload, don't cleanup the framebuffer if it is not valid.

Signed-off-by: Andy Gross <andy.gross@ti.com>
Reviewed-by: Rob Clark <rob.clark@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_fbdev.c