]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitbff8dcefcaf64257f3b42d754185dd93b762571b
tree306857acc1009e7d354aea71aa02a0ea5d40fefd
parent4c01adbfa0886d3109f1ff64de6f496a0c73848c
[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