[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <161912880923.31492.17385488154517518202.git-patchwork-notify@kernel.org>
Date: Thu, 22 Apr 2021 22:00:09 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: michael.chan@...adcom.com, edwin.peer@...adcom.com,
davem@...emloft.net, kuba@...nel.org, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net] bnxt_en: fix ternary sign extension bug in
bnxt_show_temp()
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Thu, 22 Apr 2021 12:10:28 +0300 you wrote:
> The problem is that bnxt_show_temp() returns long but "rc" is an int
> and "len" is a u32. With ternary operations the type promotion is quite
> tricky. The negative "rc" is first promoted to u32 and then to long so
> it ends up being a high positive value instead of a a negative as we
> intended.
>
> Fix this by removing the ternary.
>
> [...]
Here is the summary with links:
- [net] bnxt_en: fix ternary sign extension bug in bnxt_show_temp()
https://git.kernel.org/netdev/net/c/27537929f30d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists