android_kernel_xiaomi_sm8350/drivers
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
..
acorn
acpi Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2006-12-22 18:46:56 -08:00
amba
ata [PATCH] libata: fix combined mode 2007-01-02 08:20:51 -08:00
atm [ATM] drivers/atm/fore200e.c: Cleanups. 2006-12-22 11:12:00 -08:00
base [PATCH] fix kernel-doc warnings in 2.6.20-rc1 2006-12-22 08:55:47 -08:00
block [PATCH] cciss: build with PROC_FS=n 2006-12-30 10:56:42 -08:00
bluetooth
cdrom Merge branch 'for-linus' of git://brick.kernel.dk/data/git/linux-2.6-block 2006-12-21 00:03:38 -08:00
char [PATCH] Char: isicom, eliminate spinlock recursion 2006-12-30 10:55:55 -08:00
clocksource
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firmware
hid
hwmon
i2c
ide [PATCH] PIIX/SLC90E66: PIO mode fallback fix 2006-12-30 10:56:43 -08:00
ieee1394 ieee1394: sbp2: fix bogus dma mapping 2006-12-30 14:26:59 +01:00
infiniband [PATCH] IB/mthca: Fix FMR breakage caused by kmemdup() conversion 2006-12-30 10:55:55 -08:00
input [SPARC64]: Fix of_iounmap() region release. 2006-12-31 14:06:05 -08:00
isdn [PATCH] Call init_timer() for ISDN PPP CCP reset state timer 2006-12-22 14:31:24 -08:00
kvm [PATCH] kvm: fix GFP_KERNEL allocation in atomic section in kvm_dev_ioctl_create_vcpu() 2006-12-30 10:56:44 -08:00
leds
macintosh [PATCH] Fix compilation of via-pmu-backlight 2006-12-30 10:56:41 -08:00
mca
md [PATCH] md: fix a few problems with the interface (sysfs and ioctl) to md 2006-12-22 08:55:51 -08:00
media V4L/DVB (5010): Cx88: Fix leadtek_eeprom tagging 2006-12-27 14:23:58 -02:00
message [PATCH] fix kernel-doc warnings in 2.6.20-rc1 2006-12-22 08:55:47 -08:00
mfd
misc
mmc
mtd [PATCH] SPI/MTD: mtd_dataflash oops prevention 2006-12-30 10:56:42 -08:00
net Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 2006-12-29 10:03:54 -08:00
nubus
oprofile
parisc
parport
pci [PATCH] pci/probe: fix macro that confuses kernel-doc 2006-12-30 10:55:55 -08:00
pcmcia
pnp
ps3
rapidio
rtc
s390 [S390] cio: fix stsch_reset. 2006-12-28 00:35:36 +01:00
sbus
scsi [SCSI] libiscsi: fix senselen calculation 2007-01-06 09:02:09 -06:00
serial [SPARC64]: Fix of_iounmap() region release. 2006-12-31 14:06:05 -08:00
sh
sn
spi [PATCH] spi_s3c24xx_gpio: use right header 2006-12-30 10:56:43 -08:00
tc
telephony
usb [PATCH] make fn_keys work again on power/macbooks 2006-12-30 10:55:55 -08:00
video [SPARC64]: Fix of_iounmap() region release. 2006-12-31 14:06:05 -08:00
w1
zorro
Kconfig
Makefile