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

No differences found