Re: [PATCH net-next] netdev: check for nla_put_u32() failures

Joe Damato <[email protected]>
Newsgroups org.kernel.vger.netdev
Message-ID <[email protected]>
On Sat, Aug 08, 2026 at 05:06:09PM -0700, Jakub Kicinski wrote:
> Make sure we check if nla_put_u32(id) was successful after creating
> objects. This is theoretical today, the skbs are large enough to
> always fit the ID.
> 
> Signed-off-by: Jakub Kicinski <[email protected]>
> ---
> v2:
>  - don't handle, just WARN
> v1: https://lore.kernel.org/[email protected]
> 
> CC: [email protected]
> CC: [email protected]
> CC: [email protected]
> CC: [email protected]
> CC: [email protected]
> CC: [email protected]
> ---
>  net/core/netdev-genl.c | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
>

Reviewed-by: Joe Damato <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.