aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorDmytro Maluka <[email protected]>2023-07-17 21:37:37 +0200
committerMark Brown <[email protected]>2023-07-23 23:40:00 +0100
commitf0691dc16206f21b13c464434366e2cd632b8ed7 (patch)
treeb69471a8ec08baa664d82b6e48b77052c3abdac9 /lib/test_fortify/write_overflow-strlcpy-src.c
parent91e292917dad64ab8d1d5ca2ab3069ad9dac6f72 (diff)
ASoC: da7219: Check for failure reading AAD IRQ events
When handling an AAD interrupt, if IRQ events read failed (for example, due to i2c "Transfer while suspended" failure, i.e. when attempting to read it while DA7219 is suspended, which may happen due to a spurious AAD interrupt), the events array contains garbage uninitialized values. So instead of trying to interprete those values and doing any actions based on them (potentially resulting in misbehavior, e.g. reporting bogus events), refuse to handle the interrupt. Signed-off-by: Dmytro Maluka <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions