403c5210 | 07-Dec-2021 |
Takashi Iwai <tiwai@suse.de> |
ALSA: mixart: Add sanity check for timer notify streams
The miXart timer notification is a variable length, and if a hardware is screwed up, we may access over the actual data size. Let's add a san
ALSA: mixart: Add sanity check for timer notify streams
The miXart timer notification is a variable length, and if a hardware is screwed up, we may access over the actual data size. Let's add a sanity check and bail out if an invalid value is received.
Link: https://lore.kernel.org/r/20211207153323.27098-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
show more ...
|
72509732 | 08-Aug-2018 |
Gustavo A. R. Silva <gustavo@embeddedor.com> |
ALSA: mixart: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Notice that in this particular case, I r
ALSA: mixart: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Notice that in this particular case, I replaced the code comment with a proper "fall through" annotation, which is what GCC is expecting to find.
Addresses-Coverity-ID: 114889 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
show more ...
|