libata: zero xfer length on ATAPI data xfer IRQ is HSM violation
authorAlbert Lee <albertcc@tw.ibm.com>
Wed, 5 Dec 2007 07:43:02 +0000 (16:43 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:13 +0000 (05:24 -0500)
commit0106372db6dc135f300035ce8e93cddd7283a26a
tree951eb0c3567cad2bccf7dc3804bbdee0c462f291
parent93f8fecbe72bc3c121f3605dd198ff39ef358522
libata: zero xfer length on ATAPI data xfer IRQ is HSM violation

Treat zero xfer length as HSM violation.  While at it, add
unlikely()'s to ATAPI ireason and transfer length checks.

tj: Formatted patch and added unlikely()'s.

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