From: Eric Dumazet <[email protected]>
Date: Thu,  3 Oct 2019 08:59:24 -0700

> If netdev_name_node_head_alloc() fails to allocate
> memory, we absolutely want register_netdevice() to return
> -ENOMEM instead of zero :/
> 
> One of the syzbot report looked like :
> 
> general protection fault: 0000 [#1] PREEMPT SMP KASAN
 ...
> Fixes: ff92741270bf ("net: introduce name_node struct to be used in hashlist")
> Signed-off-by: Eric Dumazet <[email protected]>
> Cc: Jiri Pirko <[email protected]>
> Reported-by: syzbot <[email protected]>

Applied.

Reply via email to