kernel - Fix degenerate condition for ahci/cam disks without tags
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 10 Apr 2011 16:00:52 +0000 (09:00 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 10 Apr 2011 16:00:52 +0000 (09:00 -0700)
commita3c9d3d8c02c5c98212731ebed28888fa4a81f08
tree7df3f1830da7285e8fececb30f65fb5667d2b400
parent9a98f3cc99cb6d581eee77b15079c1fefd607e8f
kernel - Fix degenerate condition for ahci/cam disks without tags

* Fix a calculation that resolve to a value of at least 1, but
  was resolving to a value of 0 for USB sticks and other disk
  devices which do not negotiate NCQ.

Reported-by: Matthias Rampke <matthias@rampke.de>, swildner, others
sys/bus/cam/scsi/scsi_da.c