aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorHuazhong Tan <[email protected]>2019-04-25 12:42:54 +0000
committerDavid S. Miller <[email protected]>2019-04-26 16:13:28 +0000
commit7b8f622e537aa87b52def78c37a8645d979fb7cc (patch)
tree3f9a26324cb4717476f4f9ac0149074d4119b0ad /net/tipc/node.c
parentnet: hns3: extend the loopback state acquisition time (diff)
downloadkernel-7b8f622e537aa87b52def78c37a8645d979fb7cc.tar.gz
kernel-7b8f622e537aa87b52def78c37a8645d979fb7cc.zip
net: hns3: prevent double free in hns3_put_ring_config()
This patch adds a check for the hns3_put_ring_config() to prevent double free, and for more readable, move the NULL assignment of priv->ring_data into the hns3_put_ring_config(). Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions