]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix wrong kfree issue in snd_usb_endpoint_free_all
authorWan Jiabing <wanjiabing@vivo.com>
Wed, 18 May 2022 02:16:16 +0000 (10:16 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 May 2022 04:59:48 +0000 (06:59 +0200)
commitb25211299443ade145a3952b76910afa2471554b
treece05835836b22b458cb00ea4e146b3361ce6e1d3
parent79a5205852d27b7053a561015591c14b1433f1e3
ALSA: usb-audio: Fix wrong kfree issue in snd_usb_endpoint_free_all

Fix following coccicheck error:
./sound/usb/endpoint.c:1671:8-10: ERROR: reference preceded by free on line 1671.

Here should be 'cp' rather than 'ip'.

Fixes: ef5aa7395820 ("ALSA: usb-audio: Refcount multiple accesses on the single clock")
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Link: https://lore.kernel.org/r/20220518021617.10114-1-wanjiabing@vivo.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c