Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d9b3671 authored by Maya Erez's avatar Maya Erez Committed by Maya Erez
Browse files

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.

Change-Id: I669dc12a17b3102a7fd7f28e8c78843e3e3f9764
Signed-off-by: default avatarMaya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 1db226ffe1c2ab900cffb1d71f042e565f77775d
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git


CRs-Fixed: 1077174
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent 8f1b5e0b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment