]> git.baikalelectronics.ru Git - kernel.git/commit
parport_pc: Fix subscription bugs
authorMichael Buesch <mb@bu3sch.de>
Thu, 11 Jun 2009 12:06:31 +0000 (13:06 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2009 15:51:03 +0000 (08:51 -0700)
commit804c5a12add916d5639657f5b926eb9f67ef0f21
treeb250b867130a9233a0daa6cbf2ba11b9a5e868a1
parentf7683f6331bc74f451398c056912629136e05060
parport_pc: Fix subscription bugs

This patch fixes array subscription bugs in the parport_pc driver.

drivers/parport/parport_pc.c: In function ‘parport_irq_probe’:
drivers/parport/parport_pc.c:1589: warning: array subscript is above array bounds
drivers/parport/parport_pc.c: In function ‘parport_pc_probe_port’:
drivers/parport/parport_pc.c:1579: warning: array subscript is above array bounds

The patch also fixes a few other array bugs, which the compiler was
unable to find. Coding style violations are also fixed.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/parport/parport_pc.c