libata: be less of a drama queen on empty data commands
authorTejun Heo <tj@kernel.org>
Mon, 23 Aug 2010 09:27:27 +0000 (11:27 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Aug 2010 23:24:16 +0000 (19:24 -0400)
commit60f5d6ef6b6e70fe850554381fd8336f11530002
treedba90f93fab86f1d1cacdd0a9cc4033060713bdd
parentd26377b83972917cfb8f5bee193981aaa1130627
libata: be less of a drama queen on empty data commands

ata_qc_issue() BUG_ON()s on data commands w/o data, which may be
submitted via SG_IO.  Be less of a drama queen and just trigger
WARN_ON_ONCE() and fail the command with AC_ERR_SYSTEM.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Stefan Hübner <stefan.huebner@stud.tu-ilmenau.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c