Thread (2 messages) 2 messages, 2 authors, 2021-12-30

Re: [PATCH] net/ncsi: check for error return from call to nla_put_u32

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-12-30 02:30:15
Also in: lkml

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski [off-list ref]:

On Wed, 29 Dec 2021 11:21:18 +0800 you wrote:
As we can see from the comment of the nla_put() that it could return
-EMSGSIZE if the tailroom of the skb is insufficient.
Therefore, it should be better to check the return value of the
nla_put_u32 and return the error code if error accurs.
Also, there are many other functions have the same problem, and if this
patch is correct, I will commit a new version to fix all.

[...]
Here is the summary with links:
  - net/ncsi: check for error return from call to nla_put_u32
    https://git.kernel.org/netdev/net/c/92a34ab169f9

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help