From: Roland Dreier Date: Tue, 18 Sep 2012 22:10:56 +0000 (-0700) Subject: qla2xxx: Fix endianness of task management response code X-Git-Tag: v3.7-rc1~61^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4b11b89f9039ca97b2ed1b6efeb6749fbdeb252;p=pandora-kernel.git qla2xxx: Fix endianness of task management response code The qla2xxx firmware actually expects the task management response code in a CTIO IOCB with SCSI status mode 1 to be in little-endian byte order, ie the response code should be the first byte in the sense_data[] array. The old code erroneously byte-swapped the response code, which puts it in the wrong place on the wire and leads to initiators thinking every task management request succeeds (since they see 0 in the byte where they look for the response code). Signed-off-by: Roland Dreier Cc: Chad Dupuis Cc: Arun Easi Acked-by: Saurav Kashyap Cc: stable@vger.kernel.org Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed