aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/timer.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2020-09-02 21:21:18 +0000
committerTakashi Iwai <[email protected]>2020-09-03 07:24:58 +0000
commitb658cbabf8e3e41816f43820f2b03f498e5556d2 (patch)
tree38b5e0b0b9aa0b1e2fec1140bea1d68de51cb8bd /sound/core/timer.c
parentALSA: core: memalloc: fix fallthrough position (diff)
downloadkernel-b658cbabf8e3e41816f43820f2b03f498e5556d2.tar.gz
kernel-b658cbabf8e3e41816f43820f2b03f498e5556d2.zip
ALSA: core: pcm_memory: dereference pointer after NULL checks
Fix cppcheck warnings: sound/core/pcm_memory.c:380:26: warning: Either the condition '!substream' is redundant or there is possible null pointer dereference: substream. [nullPointerRedundantCheck] struct snd_card *card = substream->pcm->card; ^ sound/core/pcm_memory.c:384:6: note: Assuming that condition '!substream' is not redundant if (PCM_RUNTIME_CHECK(substream)) ^ sound/core/pcm_memory.c:380:26: note: Null pointer dereference struct snd_card *card = substream->pcm->card; ^ sound/core/pcm_memory.c:433:26: warning: Either the condition '!substream' is redundant or there is possible null pointer dereference: substream. [nullPointerRedundantCheck] struct snd_card *card = substream->pcm->card; ^ sound/core/pcm_memory.c:436:6: note: Assuming that condition '!substream' is not redundant if (PCM_RUNTIME_CHECK(substream)) ^ sound/core/pcm_memory.c:433:26: note: Null pointer dereference struct snd_card *card = substream->pcm->card; ^ Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'sound/core/timer.c')
0 files changed, 0 insertions, 0 deletions