diff options
author | Maya Erez <qca_merez@qca.qualcomm.com> | 2016-11-28 13:49:01 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-12-01 13:20:31 +0200 |
commit | 1db226ffe1c2ab900cffb1d71f042e565f77775d (patch) | |
tree | 6c8ff295e6baff3146b4d740ed8bab5b9603f864 /include | |
parent | bb6743f7c2ffc467002dfe24bea5dedc96c7da04 (diff) |
wil6210: validate wil_pmc_alloc parameters
num_descriptors and descriptor_size needs to be
checked for:
1) not being negative values
2) no overflow occurs when these are multiplied
together as done in wil_pmc_read.
An overflow of two signed integers is undefined
behavior.
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions