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-01-11 18:42:13 -08:00
2006-02-17 14:09:22 -08:00
2006-01-09 13:56:42 +00:00
2006-01-10 13:09:01 -08:00
2006-02-07 20:58:04 -05:00
2006-02-14 16:09:33 -08:00
2006-02-13 11:40:07 +01:00
2006-02-07 20:56:35 -05:00
2006-02-17 13:59:26 -08:00
2006-01-10 08:01:39 -08:00
2006-02-02 17:03:42 -05:00
2006-01-09 14:15:39 -08:00
2006-01-13 11:26:07 -08:00
2006-02-07 20:58:09 -05:00
2006-01-14 18:27:13 -08:00
2006-02-13 22:30:10 -08:00
2006-02-13 22:30:10 -08:00
2006-02-17 08:16:35 -08:00
2006-01-16 19:21:57 -05:00
2006-02-14 13:49:37 -08:00
2006-02-15 00:49:48 -05:00
2006-02-14 16:09:34 -08:00
2006-02-17 13:59:27 -08:00
2006-02-03 08:32:00 -08:00
2006-02-08 01:03:39 -05:00
2006-02-16 12:47:44 -08:00
2006-01-13 11:26:08 -08:00
2006-01-21 20:06:14 +00:00
2006-02-16 16:48:31 +00:00
2006-02-08 01:02:58 -05:00
2006-02-17 16:16:39 -05:00
2006-01-11 18:42:13 -08:00
2006-02-08 22:56:22 -05:00
2006-02-03 18:17:47 -08:00
2006-02-01 16:35:29 -08:00
2006-01-13 11:26:08 -08:00
2006-02-01 22:08:23 -08:00
2006-01-13 11:26:10 -08:00
2006-02-17 13:59:27 -08:00
2006-01-14 10:41:42 -08:00
2006-02-20 16:48:17 -05:00
2006-02-15 09:59:47 +00:00
2006-01-13 11:26:09 -08:00
2006-02-08 01:03:52 -05:00
2006-02-06 12:17:17 -08:00
2006-02-07 20:56:35 -05:00
2006-02-03 08:32:08 -08:00
2006-02-13 21:33:40 -08:00
2006-02-17 08:53:58 -08:00
2006-01-10 00:08:17 +01:00
2006-01-13 11:26:10 -08:00
2006-01-18 19:20:31 -08:00
2006-01-26 13:22:03 -08:00