mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 22:14:20 +08:00
ipvs: remove null test before kfree
Fix checkpatch warning: WARNING: kfree(NULL) is safe this check is probably not required Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
parent
24de3d3775
commit
b734427a4f
@ -886,8 +886,7 @@ static void ip_vs_proc_conn(struct net *net, struct ip_vs_conn_param *param,
|
||||
cp = ip_vs_conn_new(param, daddr, dport, flags, dest, fwmark);
|
||||
rcu_read_unlock();
|
||||
if (!cp) {
|
||||
if (param->pe_data)
|
||||
kfree(param->pe_data);
|
||||
kfree(param->pe_data);
|
||||
IP_VS_DBG(2, "BACKUP, add new conn. failed\n");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user