[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190726.140509.821828313930772794.davem@davemloft.net>
Date: Fri, 26 Jul 2019 14:05:09 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: baijiaju1990@...il.com
Cc: jon.maloy@...csson.com, ying.xue@...driver.com,
netdev@...r.kernel.org, tipc-discussion@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: tipc: Fix a possible null-pointer dereference in
tipc_publ_purge()
From: Jia-Ju Bai <baijiaju1990@...il.com>
Date: Thu, 25 Jul 2019 17:20:21 +0800
> @@ -223,7 +223,8 @@ static void tipc_publ_purge(struct net *net, struct publication *publ, u32 addr)
> publ->key);
> }
>
> - kfree_rcu(p, rcu);
> + if (p)
> + kfree_rcu(p, rcu);
Please fix your automated tools if that is what found this, because as
others have nodes kfree_rcu() can take a NULL pointer argument just
fine.
Thank you.
Powered by blists - more mailing lists