Re: [PATCH net] dccp: Allocate enough data in ccid_get_builtin_ccids()
Simon Horman <[email protected]> Wed, 26 Jul 2023 12:56:01 +0000
| Newsgroups | org.kernel.vger.dccp,org.kernel.vger.kernel-janitors,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jul 26, 2023 at 01:47:02PM +0300, Dan Carpenter wrote:
> This is allocating the ARRAY_SIZE() instead of the number of bytes. The
> array size is 1 or 2 depending on the .config and it should allocate
> 8 or 16 bytes instead.
>
> Fixes: ddebc973c56b ("dccp: Lockless integration of CCID congestion-control plugins")
> Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Simon Horman <[email protected]>