diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-11-25 20:09:29 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-25 22:28:33 +0100 |
commit | 17ad78e59a0334d64c3a37f964b15ab9918313c7 (patch) | |
tree | cd437a4c78569352cbc03a53cc5bcde40859d18a /fs/befs/datastream.c | |
parent | [PATCH] rtc class locking bugfixes (diff) | |
download | linux-17ad78e59a0334d64c3a37f964b15ab9918313c7.tar.xz linux-17ad78e59a0334d64c3a37f964b15ab9918313c7.zip |
[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>
Diffstat (limited to 'fs/befs/datastream.c')
0 files changed, 0 insertions, 0 deletions