[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <s5hczupc87y.wl-tiwai@suse.de>
Date: Tue, 20 Apr 2021 16:59:45 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Colin King <colin.king@...onical.com>
Cc: Clemens Ladisch <clemens@...isch.de>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: usb: midi: don't return -ENOMEM when usb_urb_ep_type_check fails
On Tue, 20 Apr 2021 15:47:19 +0200,
Colin King wrote:
>
> From: Colin Ian King <colin.king@...onical.com>
>
> Currently when the call to usb_urb_ep_type_check fails (returning -EINVAL)
> the error return path returns -ENOMEM via the exit label "error". Other
> uses of the same error exit label set the err variable to -ENOMEM but this
> is not being used. I believe the original intent was for the error exit
> path to return the value in err rather than the hard coded -ENOMEM, so
> return this rather than the hard coded -ENOMEM.
>
> Addresses-Coverity: ("Unused value")
> Fixes: 738d9edcfd44 ("ALSA: usb-audio: Add sanity checks for invalid EPs")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Thanks, applied.
Takashi
Powered by blists - more mailing lists