From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Tue, 3 Dec 2019 17:12:39 +0300 > We have to free "dev->name_node" on this error path. > > Fixes: ff92741270bf ("net: introduce name_node struct to be used in hashlist") > Reported-by: syzbot+6e13e65ffbaa33757bcb@xxxxxxxxxxxxxxxxxxxxxxxxx > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > v2: dev->name_node can't be NULL so we can remove the check for that > in the cleanup code. Applied, thanks Dan.