diff options
| author | Zhao Dongdong <zhaodongdong@kylinos.cn> | 2026-05-26 09:51:56 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-28 03:37:50 +0300 |
| commit | 36d0d876c45f7ee7935edfce7f5687a2969a2249 (patch) | |
| tree | 32f1f83948295f7ea46e94418dfb09e56dfb00a6 /include/linux | |
| parent | 3cefa8d5e798c4e21a7ea48bf6370247fca3aa9d (diff) | |
| download | linux-36d0d876c45f7ee7935edfce7f5687a2969a2249.tar.xz | |
net: page_pool: silence static analysis warnings in page_pool_nl_stats_fill()
nla_nest_start() can return NULL if the skb runs out of space.
Jakub:
There is no bug here, if nla_nest_start() failed there's not space
left in the message. Next nla_put_uint() will also fail and we will
exit via nla_nest_cancel() which handles NULL just fine.
Various people keep sending us this patch so let's commit this.
Signed-off-by: Zhao Dongdong <zhaodongdong@kylinos.cn>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://patch.msgid.link/tencent_A82EBAB365A8B888B66FDCF115A3DCB8880A@qq.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
