[PATCH] wifi: mt76: mt7915: Fix an error handling path in mt7915_add_interface()

Dan Carpenter dan.carpenter at linaro.org
Sun Nov 17 22:03:21 PST 2024


On Sun, Sep 29, 2024 at 09:53:40PM +0200, Christophe JAILLET wrote:
> If mt76_wcid_alloc() fails, the "mt76.mutex" mutex needs to be released as
> done in the other error handling path of mt7915_add_interface().
> 
> Fixes: f3049b88b2b3 ("wifi: mt76: mt7915: allocate vif wcid in the same range as stations")
> Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
> ---
> Compile tested only

Reviewed-by: Dan Carpenter <dan.carpenter at linaro.org>

This fix is still required.

regards,
dan carpenter




More information about the Linux-mediatek mailing list