diff options
| author | Takashi Iwai <tiwai@suse.de> | 2020-04-20 09:55:29 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-29 16:31:28 +0200 |
| commit | db737117e97aff0e7bfb13689c8a7ce980ea9564 (patch) | |
| tree | 1883652122d772adcf5fde32cbc30e78992c6e4a /include/uapi/linux/msg.h | |
| parent | a6db63ba00614992bad1d1dc52bb727cb5daf109 (diff) | |
ALSA: usx2y: Fix potential NULL dereference
commit 7686e3485253635c529cdd5f416fc640abaf076f upstream.
The error handling code in usX2Y_rate_set() may hit a potential NULL
dereference when an error occurs before allocating all us->urb[].
Add a proper NULL check for fixing the corner case.
Reported-by: Lin Yi <teroincn@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200420075529.27203-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/msg.h')
0 files changed, 0 insertions, 0 deletions
