From: Mayank Rana Date: Thu, 8 Dec 2011 03:36:08 +0000 (+0530) Subject: msm_serial_hs: Fix type inconsistency for tx and rx command_ptr_ptr X-Git-Tag: v3.3-rc1~154^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8431de80dad20979cc8354a90f70e2faac017932;p=pandora-kernel.git msm_serial_hs: Fix type inconsistency for tx and rx command_ptr_ptr Both tx and rx command_ptr_ptr are of type u32*. While allocating memory for it, sizeof(u32 *) is used as part of kmalloc API instead of sizeof(u32). ADM Hardare requires size of command_ptr_ptr as 1 Word. Both sizeof(u32 *) and sizeof(u32) are same on 32-bit architecture whereas sizeof(u32 *) would be different in size compare to sizeof(u32) on anyother architecture. Hence correct usage of sizeof(command_ptr_ptr) for Tx and Rx with kmalloc and dma_(map/unmap)_single APIs. Signed-off-by: Mayank Rana Reported-by: Ilia Mirkin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed