[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260210105453.GC214446@francesco-nb>
Date: Tue, 10 Feb 2026 11:54:53 +0100
From: Francesco Dolcini <francesco@...cini.it>
To: Chen-Yu Tsai <wenst@...omium.org>
Cc: Brian Norris <briannorris@...omium.org>,
Francesco Dolcini <francesco@...cini.it>,
Johannes Berg <johannes.berg@...el.com>,
linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org,
Dan Carpenter <dan.carpenter@...aro.org>
Subject: Re: [PATCH] wifi: mwifiex: Fix dev_alloc_name() return value check
On Tue, Feb 10, 2026 at 06:03:34PM +0800, Chen-Yu Tsai wrote:
> dev_alloc_name() returns the allocated ID on success, which could be
> over 0.
>
> Fix the return value check to check for negative error codes.
>
> Reported-by: Dan Carpenter <dan.carpenter@...aro.org>
> Closes: https://lore.kernel.org/all/aYmsQfujoAe5qO02@stanley.mountain/
> Fixes: 7bab5bdb81e3 ("wifi: mwifiex: Allocate dev name earlier for interface workqueue name")
> Signed-off-by: Chen-Yu Tsai <wenst@...omium.org>
Reviewed-by: Francesco Dolcini <francesco.dolcini@...adex.com>
Powered by blists - more mailing lists