summaryrefslogtreecommitdiffstats
path: root/drivers/serial/8250_early.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2006-12-17 19:10:28 +0100
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-01-06 16:02:09 +0100
commit9b80cb4be1f4181875e0cf274dc59f42964fdf1b (patch)
tree37587f07724c7382547f056e54e8a52e6e84a594 /drivers/serial/8250_early.c
parent[SCSI] iscsi: simplify IPv6 and IPv4 address printing (diff)
downloadlinux-9b80cb4be1f4181875e0cf274dc59f42964fdf1b.tar.xz
linux-9b80cb4be1f4181875e0cf274dc59f42964fdf1b.zip
[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>
Diffstat (limited to 'drivers/serial/8250_early.c')
0 files changed, 0 insertions, 0 deletions