libata: don't check n_sectors during revalidation if zero
authorTejun Heo <htejun@gmail.com>
Fri, 17 Aug 2007 09:46:51 +0000 (18:46 +0900)
committerJeff Garzik <jeff@garzik.org>
Thu, 23 Aug 2007 09:34:05 +0000 (05:34 -0400)
commitb54eebd673861136291b97e409a0f248b96e74ae
tree14ec79b827824ddd26fef89ac2db7324f7ada7fd
parent9edbdbea003b8be96e2f5d70515227d5fb32ad72
libata: don't check n_sectors during revalidation if zero

If the initial configuration fails early, n_sectors is left at zero.
Checking against it during revalidation makes retried configuration
fail due to n_sectors mismatch.  Ignore zero n_sectors during
revalidation.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c