tipc: fix a dangling pointer
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 24 Oct 2017 22:44:49 +0000 (15:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Oct 2017 08:46:53 +0000 (17:46 +0900)
commite233df01576bba9f5bafacccd571353b72152bd5
treee67220d57359519a806ac70d894b423b2c14ca84
parentc1eef220c1760762753b602c382127bfccee226d
tipc: fix a dangling pointer

tsk->group is set to grp earlier, but we forget to unset it
after grp is freed.

Fixes: 75da2163dbb6 ("tipc: introduce communication groups")
Reported-by: syzkaller bot
Cc: Jon Maloy <jon.maloy@ericsson.com>
Cc: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c