diff options
author | Chengfeng Ye | 2021-10-24 04:17:36 -0700 |
---|---|---|
committer | Takashi Iwai | 2021-10-26 08:05:23 +0200 |
commit | b97053df0f04747c3c1e021ecbe99db675342954 (patch) | |
tree | dc5a4a5a4562a0c2bf896596860b10945fdba7c6 /sound/usb/6fire | |
parent | a0d21bb3279476c777434c40d969ea88ca64f9aa (diff) |
ALSA: usb-audio: fix null pointer dereference on pointer cs_desc
The pointer cs_desc return from snd_usb_find_clock_source could
be null, so there is a potential null pointer dereference issue.
Fix this by adding a null check before dereference.
Signed-off-by: Chengfeng Ye <cyeaa@connect.ust.hk>
Link: https://lore.kernel.org/r/20211024111736.11342-1-cyeaa@connect.ust.hk
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/6fire')
0 files changed, 0 insertions, 0 deletions