From: Eric Dumazet <eduma...@google.com> 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 <eduma...@google.com> > Cc: Jiri Pirko <j...@mellanox.com> > Reported-by: syzbot <syzkal...@googlegroups.com> Applied.