Messages in this thread | | | Date | Fri, 26 Jul 2019 14:05:09 -0700 (PDT) | Subject | Re: [PATCH] net: tipc: Fix a possible null-pointer dereference in tipc_publ_purge() | From | David Miller <> |
| |
From: Jia-Ju Bai <baijiaju1990@gmail.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.
| |