From: Adrian Bunk Date: Sat, 25 Nov 2006 19:09:29 +0000 (-0800) Subject: [PATCH] drivers/rtc/rtc-rs5c372.c: fix a NULL dereference X-Git-Tag: v2.6.19~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17ad78e59a0334d64c3a37f964b15ab9918313c7;p=pandora-kernel.git [PATCH] drivers/rtc/rtc-rs5c372.c: fix a NULL dereference The correct order is: NULL check before dereference This was a guaranteed NULL dereference with debugging enabled since rs5c372_sysfs_show_osc() does actually pass NULL... Spotted by the Coverity checker. Signed-off-by: Adrian Bunk Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed