[PATCH] coverity: fix fbsysfs null pointer check
authorKAMBAROV, ZAUR <kambarov@berkeley.edu>
Fri, 8 Jul 2005 00:57:05 +0000 (17:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:47 +0000 (18:23 -0700)
commit8f96c95680bfe66ff00c91859d4c73edf539b854
tree306857acc1009e7d354aea71aa02a0ea5d40fefd
parent5bbcfd9000887c0da7d57cc7b3ac869fc0dd5aa9
[PATCH] coverity: fix fbsysfs null pointer check

Correctly test for a null pointer before going and dereferencing it.

This defect was found automatically by Coverity Prevent, a static analysis
tool.

Signed-off-by: Zaur Kambarov <zkambarov@coverity.com>
Cc: <linux-fbdev-devel@lists.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/fbsysfs.c