[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <167665015810.8263.7706809167524564713.kvalo@kernel.org>
Date: Fri, 17 Feb 2023 16:09:20 +0000 (UTC)
From: Kalle Valo <kvalo@...nel.org>
To: Yang Li <yang.lee@...ux.alibaba.com>
Cc: kuba@...nel.org, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, ath12k@...ts.infradead.org,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Yang Li <yang.lee@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: Re: [PATCH -next] wifi: ath12k: dp_mon: Fix unsigned comparison with
less
than zero
Yang Li <yang.lee@...ux.alibaba.com> wrote:
> The return value from the call to idr_alloc() is int.
> However, the return value is being assigned to an unsigned
> int variable 'buf_id', so making 'buf_id' an int.
>
> Eliminate the following warning:
> ./drivers/net/wireless/ath/ath12k/dp_mon.c:1300:15-21: WARNING: Unsigned expression compared with zero: buf_id < 0
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4060
> Signed-off-by: Yang Li <yang.lee@...ux.alibaba.com>
> Signed-off-by: Kalle Valo <quic_kvalo@...cinc.com>
Patch applied to ath-next branch of ath.git, thanks.
731e1b36656a wifi: ath12k: dp_mon: Fix unsigned comparison with less than zero
--
https://patchwork.kernel.org/project/linux-wireless/patch/20230215011453.73466-1-yang.lee@linux.alibaba.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists