]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-pca-isa: Add access check to legacy ioports
authorChristian Krafft <krafft@de.ibm.com>
Sun, 24 Feb 2008 19:03:42 +0000 (20:03 +0100)
committerJean Delvare <khali@hyperion.delvare>
Sun, 24 Feb 2008 19:03:42 +0000 (20:03 +0100)
commitdb476568bfd0c2bb0aa10097ac041e3a1d9fcf00
tree72308d9dd04d42c3f0565f7084d78d607031c46d
parentd9a0e3797e34d95b2914b01286fdcad66f65f954
i2c-pca-isa: Add access check to legacy ioports

When probing i2c-pca-isa writes to legacy ioports, which crashes the kernel
if there is no device at that port.
This patch adds a check_legacy_ioport call, so probe fails gracefully
and thus prevents the oops.

Signed-off-by: Christian Krafft <krafft@de.ibm.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-pca-isa.c