]> err.no Git - linux-2.6/commit
[PATCH] drivers/video/s3fb.c: fix a use-before-check
authorAdrian Bunk <bunk@stusta.de>
Thu, 22 Mar 2007 08:11:16 +0000 (00:11 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 23 Mar 2007 02:39:05 +0000 (19:39 -0700)
commit47ebea8351061f763089f6c3e2d2403715b510e1
treec35bf89557e51b6577bc151bd8205ffe0137d690
parentfffda91e2e7ffcc4f60b8666a59f64f28081ce63
[PATCH] drivers/video/s3fb.c: fix a use-before-check

NULL checks should be before the first dereference.

Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Ondrej Zajicek <santiago@crfreenet.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/s3fb.c