[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <165061981087.24106.7289646178993496759.git-patchwork-notify@kernel.org>
Date: Fri, 22 Apr 2022 09:30:10 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Lv Ruyi <cgel.zte@...il.com>
Cc: kas@...muni.cz, davem@...emloft.net, kuba@...nel.org,
pabeni@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, lv.ruyi@....com.cn, zealci@....com.cn
Subject: Re: [PATCH] net: cosa: fix error check return value of register_chrdev()
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@...emloft.net>:
On Mon, 18 Apr 2022 10:58:34 +0000 you wrote:
> From: Lv Ruyi <lv.ruyi@....com.cn>
>
> 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@....com.cn>
> Signed-off-by: Lv Ruyi <lv.ruyi@....com.cn>
>
> [...]
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
Powered by blists - more mailing lists