diff options
| author | Sanjay Devnani <sdevnani@qca.qualcomm.com> | 2014-03-04 19:47:19 -0800 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-03-06 18:59:46 -0800 |
| commit | f595b5e546932eecbba4c3fc2b9a9d1d8d6ff6d7 (patch) | |
| tree | b9ff894dcfccdccda16ecdaa5d2c8b2764f85013 | |
| parent | eb40d9825046e7334154036226e38e9e4a54a112 (diff) | |
wlan: wma_vdev_start - cmd pointer being typecasted as a 32bit value
Typecast pointer as a uintptr_t, otherwise causes invalid memory
access on a 64 bit machine when only lower 32 bits are used.
Change-Id: If1fd9d8fff7ad4ce4be733a85dc02932e5c732c3
CRs-fixed: 626474
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index ed175c6f1081..734bdb925d4e 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -5828,7 +5828,7 @@ static VOS_STATUS wma_vdev_start(tp_wma_handle wma, } cmd->num_noa_descriptors = 0; - buf_ptr = (u_int8_t *)(((u_int32_t) cmd) + sizeof(*cmd) + + buf_ptr = (u_int8_t *)(((uintptr_t) cmd) + sizeof(*cmd) + sizeof(wmi_channel)); WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_STRUC, cmd->num_noa_descriptors * |
