diff options
| author | Deepanshu Kartikey <kartikey406@gmail.com> | 2026-09-13 08:49:06 +0530 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-10-13 15:52:44 +0200 |
| commit | dfa953ba5366b0a80c303700dab2bbcbdc5c27e9 (patch) | |
| tree | c2bf6bed2f066084ffdd66aa9426d256f5c4256e /rust/kernel/alloc/allocator | |
| parent | d1807b20d548171d40c5d21a7cf22830ea8f348e (diff) | |
batman-adv: avoid WARN_ON for orig_ifinfo allocation failure
batadv_orig_ifinfo_new() returns NULL only when its GFP_ATOMIC
allocation fails, which is a normal runtime condition and not a bug.
batadv_v_ogm_forward() already handles this the same way, simply
checking for NULL without a WARN_ON.
Do the same in batadv_iv_ogm_update_seqnos() to avoid a spurious
WARN_ON splat when the allocation fails (e.g. under fault injection).
Fixes: 7351a4822d42 ("batman-adv: split out router from orig_node")
Reported-by: syzbot+a079f084653164a652d1@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=a079f084653164a652d1
Signed-off-by: Deepanshu Kartikey <kartikey406@gmail.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
