Skip to content
Commit 8ae4471d authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Chanwoo Choi
Browse files

extcon: usbc-cros-ec: Use struct_size() helper in kzalloc()



Make use of the struct_size() helper instead of an open-coded version,
in order to avoid any potential type mistakes or integer overflows that,
in the worst scenario, could lead to heap overflows.

Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 4c018cc8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment