Mike Christie 9b80cb4be1 [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 <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2007-01-06 09:02:09 -06:00
..
2007-01-02 08:20:51 -08:00
2006-12-30 10:56:42 -08:00
2006-12-13 10:11:25 -05:00
2006-12-10 09:55:40 -08:00
2006-12-11 12:43:35 +01:00
2006-12-11 13:49:53 +11:00
2006-12-28 00:35:36 +01:00
2006-12-13 09:05:48 -08:00
2006-12-10 09:57:22 -08:00
2006-12-10 09:57:22 -08:00