]> git.baikalelectronics.ru Git - kernel.git/commit
fb: handle NULL pointers in framebuffer release
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 May 2012 20:58:37 +0000 (23:58 +0300)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 29 May 2012 13:00:03 +0000 (13:00 +0000)
commit715e9dbf37527bec85b4a8b3394307495ff80549
treefd28d49904845d402661bffa0c618e4448529d83
parenta944ed5f7f49f15ca0469a1633f77c76eba2ab16
fb: handle NULL pointers in framebuffer release

This function is called with a potential NULL pointer in
picolcd_init_framebuffer() and it causes a static checker warning.  This
used to handle NULL pointers when the picolcd code was written, but a
couple months later we added the "info->apertures" dereference.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/fbsysfs.c