megaraid: fix null pointer check in megasas_detach_one().
authorMaurizio Lombardi <mlombard@redhat.com>
Fri, 22 Jan 2016 12:41:42 +0000 (13:41 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commit546e559c79b1a8d27c23262907a00fc209e392a0
tree9a9a8654bbfaa21d9bdf978f47a9e951eaf36916
parent33f8d1f089f59aecab22056b20e37185b9156a4c
megaraid: fix null pointer check in megasas_detach_one().

The pd_seq_sync pointer can't be NULL, we have to check its entries
instead.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_base.c