]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rxe: Prevent from completer to operate on non valid QP
authorYonatan Cohen <yonatanc@mellanox.com>
Thu, 19 Jan 2017 13:25:59 +0000 (15:25 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 21:17:32 +0000 (16:17 -0500)
commit1155056f1c144788533e9632c460021c46d4985e
tree595ca21e04b7db8f27e5e178753ff1b0ba677e77
parent654e642ece0af39302af9344658b7979c4b1de0b
IB/rxe: Prevent from completer to operate on non valid QP

On UD QP completer tasklet is scheduled for each packet sent.

If it is followed by a destroy_qp(), the kernel panic will
happen as the completer tries to operate on a destroyed QP.

Fixes: 5deaf88696f1 ("Soft RoCE driver")
Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_qp.c