]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SCSI: megaraid_sas: fix 64 bit sense pointer truncation
authorYang, Bo <Bo.Yang@lsi.com>
Tue, 6 Oct 2009 20:52:20 +0000 (14:52 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:08:04 +0000 (08:08 -0800)
commit66d8e059a54d7aa345ef9a857986e2055870a14e
treea37ee4e197e2d66c955daf0bc0476abea151fa84
parent51a88ff8de521caa02d8d208e410ff85a3c85199
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