tipc: check group dests after tipc_wait_for_cond()
authorCong Wang <xiyou.wangcong@gmail.com>
Mon, 17 Dec 2018 07:25:12 +0000 (23:25 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 23:44:23 +0000 (15:44 -0800)
commit3c6306d44082ef007a258ae1b86ea58e6974ee3f
tree817d7e2f340a57554677de33e228adfe5cc7cdad
parentf07d4276892d97671e880190ff195a288b2d8d92
tipc: check group dests after tipc_wait_for_cond()

Similar to commit 143ece654f9f ("tipc: check tsk->group in tipc_wait_for_cond()")
we have to reload grp->dests too after we re-take the sock lock.
This means we need to move the dsts check after tipc_wait_for_cond()
too.

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