SCSI: megaraid_sas: fix 64 bit sense pointer truncation
commitd10a8f05208b66c0b29562a9601601b9a7b5d9ac
authorYang, Bo <Bo.Yang@lsi.com>
Tue, 6 Oct 2009 20:52:20 +0000 (6 14:52 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 17:44:46 +0000 (14 09:44 -0800)
tree13fc77f247e02abb5734824040719da291f47a15
parent79daedf8b665473f5adf6d0d80b4f2c6ff524bca
SCSI: megaraid_sas: fix 64 bit sense pointer truncation

commit 7b2519afa1abd1b9f63aa1e90879307842422dae upstream.

The current sense pointer is cast to a u32 pointer, which can truncate
on 64 bits.  Fix by using unsigned long instead.

Signed-off-by Bo Yang<bo.yang@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/megaraid/megaraid_sas.c