commit | ee22071a178fc1bfff741ad558301ca45d7f5363 | [log] [tgz] |
---|---|---|
author | Dustin Brown <dustinb@codeaurora.org> | Thu Apr 19 16:24:23 2018 -0700 |
committer | nshrivas <nshrivas@codeaurora.org> | Mon Apr 23 12:44:15 2018 -0700 |
tree | cc6c6eb88c98d91f03941e63a11682949521c451 | |
parent | 0c28056d53cebc7a65999c1b49452a0dc7db9fa9 [diff] |
qcacld-3.0: Use total_len in drv_cmd_p2p_dev_addr() Avoid userspace overwrite in drv_cmd_p2p_dev_addr() by intersecting the max output buffer size with the total length of the userspace buffer. This avoids the overwrite in cases where the allocated userspace buffer is smaller than the max output buffer size. Change-Id: I55c6d4b277e5964a7978daceffbe4eb72014c06d CRs-Fixed: 2222846