Adrian Bunk 17ad78e59a [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 <bunk@stusta.de>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-11-25 13:28:33 -08:00
..
2006-03-27 08:44:51 -08:00
2006-11-25 13:28:33 -08:00
2006-11-25 13:28:33 -08:00
2006-11-25 13:28:33 -08:00
2006-10-04 08:15:14 -07:00
2006-10-04 08:15:14 -07:00
2006-10-01 00:39:25 -07:00
2006-10-06 15:31:16 +09:00
2006-10-01 10:39:01 -07:00
2006-11-25 13:28:33 -08:00