Home
last modified time | relevance | path

Searched hist:"8 ae4471d38c4952d8eb67ce60e3988c4ccb25dc6" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/extcon/
H A Dextcon-usbc-cros-ec.cdiff 8ae4471d38c4952d8eb67ce60e3988c4ccb25dc6 Tue Jan 25 13:26:34 CST 2022 Gustavo A. R. Silva <gustavoars@kernel.org> 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: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>