Tejun Heo 9ae61c6cb6 [PATCH] libata: fix WARN_ON() condition in *_fill_sg()
For ATAPI commands, padding can reduce qc->n_elem by one and thus to
zero making assert(qc->n_elem > 0)'s in ata_fill_sg() and qs_fill_sg()
fail for legal commands.  This patch fixes the assert()'s to take
qc->pad_len into account.

Although the condition check seems a bit excessive, as this part of
code isn't still stable yet, I think it's worth to keep those.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2006-02-20 16:48:17 -05:00
..
2006-02-14 16:09:33 -08:00
2006-01-14 18:27:13 -08:00
2006-02-13 22:30:10 -08:00
2006-01-14 10:41:42 -08:00
2006-02-15 09:59:47 +00:00
2006-02-13 21:33:40 -08:00
2006-01-10 00:08:17 +01:00
2006-01-18 19:20:31 -08:00