]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: ecc - Streamline alloc_point and remove {alloc,free}_digits_space
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 5 Jan 2026 22:21:53 +0000 (23:21 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Jan 2026 05:48:44 +0000 (13:48 +0800)
commitc66e0a273f223fe38b8b72c034857622b0651482
treeb3b9e3c0584c6e634d6ed32cf9a50e17432b5058
parentc0008a29a006091d7f9d288620c2456afa23ff27
crypto: ecc - Streamline alloc_point and remove {alloc,free}_digits_space

Check 'ndigits' before allocating 'struct ecc_point' to return early if
needed. Inline the code from and remove ecc_alloc_digits_space() and
ecc_free_digits_space(), respectively.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ecc.c