mfd: WM8350 off by one bug
authorDan Carpenter <error27@gmail.com>
Tue, 5 Jan 2010 13:59:06 +0000 (13:59 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 18 Jan 2010 11:30:26 +0000 (12:30 +0100)
commit6f2af72a2451b7491fba820b1d1b0b91c6a84027
tree2b893aa89ce05e77f9da854bbfdba787f6456a15
parent9dffe2a32b0deef52605d50527c0d240b15cabf7
mfd: WM8350 off by one bug

If irq == WM8350_NUM_IRQ that would put us past the end of the array.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8350-irq.c