Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] mptsas : NULL pointer on big endian systems causing Expander not to tear off

On Big endian system kernel will crash due to address translation
is not handle properly.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by

Kashyap, Desai and committed by
James Bottomley
f44fd181 9e39089b

+1
+1
drivers/message/fusion/mptsas.c
··· 3314 3314 expander_data = (MpiEventDataSasExpanderStatusChange_t *) 3315 3315 fw_event->event_data; 3316 3316 memcpy(&sas_address, &expander_data->SASAddress, sizeof(__le64)); 3317 + sas_address = le64_to_cpu(sas_address); 3317 3318 port_info = mptsas_find_portinfo_by_sas_address(ioc, sas_address); 3318 3319 3319 3320 if (expander_data->ReasonCode == MPI_EVENT_SAS_EXP_RC_ADDED) {