diff options
author | 2006-02-20 23:48:37 +0900 | |
---|---|---|
committer | 2006-02-20 16:48:17 -0500 | |
commit | 9ae61c6cb69f5251d160576c324948805f97e901 (patch) | |
tree | 14ab65b577a916c777823468889fc593d6838b12 /drivers/acpi/processor_idle.c | |
parent | Linux v2.6.16-rc4 (diff) | |
download | wireguard-linux-9ae61c6cb69f5251d160576c324948805f97e901.tar.xz wireguard-linux-9ae61c6cb69f5251d160576c324948805f97e901.zip |
[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>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
0 files changed, 0 insertions, 0 deletions