[SCSI] mpt2sas: Use compat_ptr to setup the pointer compatibility.
commit22c88425e03e8476176375ab0457c88ff3a5b68c
authorKashyap, Desai <kashyap.desai@lsi.com>
Wed, 16 Dec 2009 13:23:04 +0000 (16 18:53 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 9 Feb 2010 00:19:40 +0000 (8 18:19 -0600)
tree66b41c53bf3d5896393bc70322f45d7894807bb0
parente75b9b6d9d81e35aed5ef2692285c4948e173c5c
[SCSI] mpt2sas: Use compat_ptr to setup the pointer compatibility.

On ppc64, an 32bit application was failing due to data buffers not being
copied properly from user to kernel memory.  The problem due to improper
conversion of 32 to 64 bit pointers.  The fix is to use compat_ptr to
setup the pointer compatibility in the routine _ctl_compat_mpt_command.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Reviewed-by: Eric Moore <eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_ctl.c