Skip to content

Commit

Permalink
[SCSI] mptsas : NULL pointer on big endian systems causing Expander n…
Browse files Browse the repository at this point in the history
…ot 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>
  • Loading branch information
Kashyap, Desai authored and James Bottomley committed Sep 12, 2009
1 parent 9e39089 commit f44fd18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/message/fusion/mptsas.c
Original file line number Diff line number Diff line change
Expand Up @@ -3314,6 +3314,7 @@ mptsas_send_expander_event(struct fw_event_work *fw_event)
expander_data = (MpiEventDataSasExpanderStatusChange_t *)
fw_event->event_data;
memcpy(&sas_address, &expander_data->SASAddress, sizeof(__le64));
sas_address = le64_to_cpu(sas_address);
port_info = mptsas_find_portinfo_by_sas_address(ioc, sas_address);

if (expander_data->ReasonCode == MPI_EVENT_SAS_EXP_RC_ADDED) {
Expand Down

0 comments on commit f44fd18

Please sign in to comment.