diff options
author | Axel Lin <[email protected]> | 2012-11-20 10:34:56 +0800 |
---|---|---|
committer | Samuel Ortiz <[email protected]> | 2012-11-26 12:10:51 +0100 |
commit | 3f9be35bd9090eaa2f68ed9b24efdbf3abcf4b28 (patch) | |
tree | b2a5647e0f05fb5415f315a24700d12ccfa9b2ff /net/lapb/lapb_out.c | |
parent | 302b95621dc96651187c21fd66e5a44860e4c3b1 (diff) |
mfd: rc5t583: Fix array subscript is above array bounds
I got below build warning while compiling this driver.
It's obviously RC5T583_MAX_INTERRUPT_MASK_REGS is 9 but irq_en_add
array only has 8 elements.
CC drivers/mfd/rc5t583-irq.o
drivers/mfd/rc5t583-irq.c: In function 'rc5t583_irq_sync_unlock':
drivers/mfd/rc5t583-irq.c:227: warning: array subscript is above array bounds
drivers/mfd/rc5t583-irq.c: In function 'rc5t583_irq_init':
drivers/mfd/rc5t583-irq.c:349: warning: array subscript is above array bounds
Since the number of interrupt enable registers is 8, this patch adds
define for RC5T583_MAX_INTERRUPT_EN_REGS to fix this bug.
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Laxman Dewangan <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions