From: Mike Christie Date: Sun, 17 Dec 2006 18:10:28 +0000 (-0600) Subject: [SCSI] libiscsi: fix senselen calculation X-Git-Tag: v2.6.20-rc6~54^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b80cb4be1f4181875e0cf274dc59f42964fdf1b;p=pandora-kernel.git [SCSI] libiscsi: fix senselen calculation Yanling Qi, noted that when the sense data length of a check-condition is greater than 0x7f (127), senselen = (data[0] << 8) | data[1] will become negative. It causes different kinds of panics from GPF, spin_lock deadlock to spin_lock recursion. We were also swapping this value on big endien machines. This patch fixes both issues by using be16_to_cpu(). Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed