summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-roccat-koneplus.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-08-15 11:41:06 +0200
committerSasha Levin <sashal@kernel.org>2020-06-29 20:08:05 -0400
commitd9ed57ecc2947abcf5a8226b34e0634a8fe77692 (patch)
tree3f86710367b79d0f6f485b9e5e9657b7baee1487 /drivers/hid/hid-roccat-koneplus.h
parent7f9d01a3dac7a5b9ef2b80d1c7049c25743cd661 (diff)
ALSA: usb-audio: Fix invalid NULL check in snd_emuusb_set_samplerate()
commit 6de3c9e3f6b3eaf66859e1379b3f35dda781416b upstream. The quirk function snd_emuusb_set_samplerate() has a NULL check for the mixer element, but this is useless in the current code. It used to be a check against mixer->id_elems[unitid] but it was changed later to the value after mixer_eleme_list_to_info() which is always non-NULL due to the container_of() usage. This patch fixes the check before the conversion. While we're at it, correct a typo in the comment in the function, too. Fixes: 8c558076c740 ("ALSA: usb-audio: Clean up mixer element list traverse") Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hid/hid-roccat-koneplus.h')
0 files changed, 0 insertions, 0 deletions