Re: [PATCH] net: cosa: fix error check return value of register_chrdev()
From: patchwork-bot+netdevbpf
Date: Fri Apr 22 2022 - 05:30:29 EST
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:
On Mon, 18 Apr 2022 10:58:34 +0000 you wrote:
> From: Lv Ruyi <lv.ruyi@xxxxxxxxxx>
>
> If major equal 0, register_chrdev() returns error code when it fails.
> This function dynamically allocate a major and return its number on
> success, so we should use "< 0" to check it instead of "!".
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: Lv Ruyi <lv.ruyi@xxxxxxxxxx>
>
> [...]
Here is the summary with links:
- net: cosa: fix error check return value of register_chrdev()
https://git.kernel.org/netdev/net/c/d48fea8401cf
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html