mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-22 18:42:01 +00:00
735ce972fb
As noticed by Gabriel Campana, the kmalloc() length arg passed in by sctp_getsockopt_local_addrs_old() can overflow if ->addr_num is large enough. Therefore, enforce an appropriate limit. Signed-off-by: David S. Miller <davem@davemloft.net>