]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: atmel-sha204a - Fix uninitialized data access on OTP read error
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 20 Feb 2026 13:31:36 +0000 (14:31 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 7 Mar 2026 05:12:20 +0000 (14:12 +0900)
commitde4e66b763d1e81188cb2803ec109466582fc9d1
tree0c01ccc25b88bb27bcd953cc87b5e06e05bc14e6
parent1eb6c478f1edc4384d8fea765cd13ac01199e8b5
crypto: atmel-sha204a - Fix uninitialized data access on OTP read error

Return early if atmel_i2c_send_receive() fails to avoid checking
potentially uninitialized data in 'cmd.data'.

Cc: stable@vger.kernel.org
Fixes: e05ce444e9e5 ("crypto: atmel-sha204a - add reading from otp zone")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha204a.c