sm501fb: check fb_alloc_cmap return value and handle failure properly
commit0a5d924e5954e81a905907512f8c7a1cbf81d700
authorAndres Salomon <dilinger@queued.net>
Tue, 31 Mar 2009 22:25:24 +0000 (31 15:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2009 15:59:30 +0000 (1 08:59 -0700)
treef8caf5debe410a06f3783fe88b5f05796a8a70c9
parent0fd853118dd821de59106c5b9a0a2a6f488bc4b5
sm501fb: check fb_alloc_cmap return value and handle failure properly

Signed-off-by: Andres Salomon <dilinger@debian.org>
Acked-by: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/sm501fb.c