summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-04-24 21:59:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-30 16:27:27 +0200
commitb2421a196cb0911ea95aec1050a0b830464c8fa6 (patch)
treed7936fe6d2d84afe00a13fcc6beab1cbcb31bab2 /Documentation
parente8bf830efa8a60324d53cfd3083277be8918f838 (diff)
ALSA: pcm: Check for null pointer of pointer substream before dereferencing it
commit 011b559be832194f992f73d6c0d5485f5925a10b upstream. Pointer substream is being dereferenced on the assignment of pointer card before substream is being null checked with the macro PCM_RUNTIME_CHECK. Although PCM_RUNTIME_CHECK calls BUG_ON, it still is useful to perform the the pointer check before card is assigned. Fixes: d4cfb30fce03 ("ALSA: pcm: Set per-card upper limit of PCM buffer allocations") Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20220424205945.1372247-1-colin.i.king@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions