Erez Shitrit 68c6bcdd8b IB/core: Fix use after free in send_leave function
The function send_leave sets the member: group->query_id
(group->query_id = ret) after calling the sa_query, but leave_handler
can be executed before the setting and it might delete the group object,
and will get a memory corruption.

Additionally, this patch gets rid of group->query_id variable which is
not used.

Fixes: faec2f7b96b5 ('IB/sa: Track multicast join/leave requests')
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-09-02 14:06:27 -04:00
..
2016-05-24 14:44:04 -04:00
2015-10-08 11:09:10 +01:00
2015-06-12 14:49:18 -04:00
2015-05-05 13:21:27 -04:00
2016-03-03 10:20:25 -05:00
2016-06-06 19:36:21 -04:00
2016-01-19 15:25:45 -05:00
2008-07-14 23:48:44 -07:00
2016-06-06 19:36:21 -04:00
2016-05-13 13:37:18 -04:00
2016-03-03 10:20:25 -05:00
2016-08-04 20:10:31 -04:00
2016-03-03 10:20:25 -05:00
2016-08-04 20:26:31 -04:00