aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorPurva Yeshi <[email protected]>2025-04-10 10:34:42 +0000
committerJarkko Sakkinen <[email protected]>2025-05-15 01:47:14 +0000
commit32d495b384a2db7d23c2295e03e6b6edb1c0db8d (patch)
tree637b459e20b8457cd5c7f9ba193eda95359c8a07 /drivers/net/ethernet/intel/ice/ice_main.c
parenttpm: Mask TPM RC in tpm2_start_auth_session() (diff)
downloadkernel-32d495b384a2db7d23c2295e03e6b6edb1c0db8d.tar.gz
kernel-32d495b384a2db7d23c2295e03e6b6edb1c0db8d.zip
char: tpm: tpm-buf: Add sanity check fallback in read helpers
Fix Smatch-detected issue: drivers/char/tpm/tpm-buf.c:208 tpm_buf_read_u8() error: uninitialized symbol 'value'. drivers/char/tpm/tpm-buf.c:225 tpm_buf_read_u16() error: uninitialized symbol 'value'. drivers/char/tpm/tpm-buf.c:242 tpm_buf_read_u32() error: uninitialized symbol 'value'. Zero-initialize the return values in tpm_buf_read_u8(), tpm_buf_read_u16(), and tpm_buf_read_u32() to guard against uninitialized data in case of a boundary overflow. Add defensive initialization ensures the return values are always defined, preventing undefined behavior if the unexpected happens. Signed-off-by: Purva Yeshi <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions