]> git.baikalelectronics.ru Git - kernel.git/commit
[WATCHDOG] gef_wdt.c: fsl_get_sys_freq() failure not noticed
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 3 Mar 2009 14:10:05 +0000 (15:10 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 5 Mar 2009 14:02:53 +0000 (14:02 +0000)
commite7a3cc768e5b3f4b85718a06be52f00b7d23f021
treee34390eed4512a74208c4c9588661861b0d54727
parent2d8466263185bcaefb835f4412a2e60036c2e0ba
[WATCHDOG] gef_wdt.c: fsl_get_sys_freq() failure not noticed

fsl_get_sys_freq() may return -1 when 'soc' isn't found, but in
gef_wdt_probe() 'freq' is unsigned, so the test doesn't catch that.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/watchdog/gef_wdt.c