diff options
author | 2020-09-02 16:21:18 -0500 | |
---|---|---|
committer | 2020-09-03 09:24:58 +0200 | |
commit | b658cbabf8e3e41816f43820f2b03f498e5556d2 (patch) | |
tree | 38b5e0b0b9aa0b1e2fec1140bea1d68de51cb8bd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ALSA: core: memalloc: fix fallthrough position (diff) | |
download | wireguard-linux-b658cbabf8e3e41816f43820f2b03f498e5556d2.tar.xz wireguard-linux-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 <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200902212133.30964-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions