pata_isapnp: Don't use invalid I/O ports
authorOndrej Zary <linux@rainbow-software.org>
Thu, 12 Sep 2013 21:01:29 +0000 (23:01 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 7 Oct 2013 19:17:32 +0000 (15:17 -0400)
commitfc0012ec533def054e1ac57d54ed781fc0ab6b71
tree718c9bad11d2bc99fd0fe63e95cd6b9618dce1cc
parent272b98c6455f00884f0350f775c5342358ebb73f
pata_isapnp: Don't use invalid I/O ports

The test for 2nd I/O port validity is broken (reversed): On devices
with no control port, the driver attempts to use invalid port 0,
resulting in logs full of bad_io_access errors.  On devices with
control port, the driver does not use it.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_isapnp.c