Messages in this thread | | | From | Felipe Balbi <> | Subject | Re: [PATCH][next] usb: gadget: s3c-hsudc: Use struct_size() in devm_kzalloc() | Date | Fri, 14 May 2021 10:24:50 +0300 |
| |
"Gustavo A. R. Silva" <gustavoars@kernel.org> writes:
> 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 worse scenario, could lead to heap overflows. > > This code was detected with the help of Coccinelle and, audited and > fixed manually. > > Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Acked-by: Felipe Balbi <balbi@kernel.org>
-- balbi [unhandled content-type:application/pgp-signature] | |