From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Fietkau Subject: Re: [PATCH] mt76: Fix a signedness bug in mt7615_add_interface() Date: Sat, 11 May 2019 15:28:59 +0200 Message-ID: References: <20190502212341.GA31847@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190502212341.GA31847@mwanda> Content-Language: en-US Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dan Carpenter , Ryder Lee Cc: Lorenzo Bianconi , Roy Luo , Kalle Valo , Matthias Brugger , linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-mediatek@lists.infradead.org On 2019-05-03 14:54, Dan Carpenter wrote: > The problem is that "mvif->omac_idx" is a u8 so it can't be negative > and the error handling won't work. The get_omac_idx() function returns > -1 on error. > > Fixes: 04b8e65922f6 ("mt76: add mac80211 driver for MT7615 PCIe-based chipsets") > Signed-off-by: Dan Carpenter Applied, thanks. - Felix