]> bbs.cooldavid.org Git - net-next-2.6.git/commit
fb: handle allocation failure in alloc_apertures()
authorDan Carpenter <error27@gmail.com>
Thu, 15 Jul 2010 08:39:47 +0000 (10:39 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Jul 2010 05:24:09 +0000 (15:24 +1000)
commit772a2f9b488f4d27c314da5eeabde750b9ead41b
tree2cb96edb617d659b26cad8c603d664cfa0cd1373
parentbbb642f9c9a43dbe45ffe14935397a2a34100263
fb: handle allocation failure in alloc_apertures()

If the kzalloc() fails we should return NULL.  All the places that call
alloc_apertures() check for this already.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: James Simmons <jsimmons@infradead.org>
Acked-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
include/linux/fb.h