diff options
author | Chengfeng Ye <cyeaa@connect.ust.hk> | 2021-10-24 14:17:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-25 11:48:30 +0300 |
commit | 58fa50de595f152900594c28ec9915c169643739 (patch) | |
tree | 4f1911c333649c938d3c584c0d83d1d4f735f8f6 /drivers/clk | |
parent | 16721797dcef2c7c030ffe73a07f39a65f9323c3 (diff) | |
download | linux-58fa50de595f152900594c28ec9915c169643739.tar.xz |
ALSA: usb-audio: fix null pointer dereference on pointer cs_desc
[ Upstream commit b97053df0f04747c3c1e021ecbe99db675342954 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions