Wim Van Sebroeck bbd562d717 watchdog: cpwd: Fix buffer-overflow
cppcheck-1.47 reports:
[drivers/watchdog/cpwd.c:650]: (error) Buffer access out-of-bounds: p.devs

The source code is
	for (i = 0; i < 4; i++) {
		misc_deregister(&p->devs[i].misc);

where devs is defined as WD_NUMDEVS big and WD_NUMDEVS is equal to 3.
So the 4 should be a 3 or WD_NUMDEVS.

Reported-By: David Binderman
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2011-03-14 10:39:27 +00:00
..
2011-03-03 11:53:25 -05:00
2011-03-13 15:35:59 -07:00
2011-01-20 21:37:29 +10:30
2011-03-02 10:57:50 +01:00
2011-03-10 14:41:51 -08:00
2011-02-28 12:06:20 -08:00
2011-02-01 16:48:46 +02:00