diff options
| author | Mayank Rana <[email protected]> | 2011-12-08 09:06:08 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2011-12-09 19:10:04 -0800 |
| commit | 8431de80dad20979cc8354a90f70e2faac017932 (patch) | |
| tree | e5b8357dd31a65405f3d9b4887a7b22724a1e988 /scripts/objdiff | |
| parent | 7f97c000e87751fdca69d14cba2bbba795c1a972 (diff) | |
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 <[email protected]>
Reported-by: Ilia Mirkin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions