]> git.karo-electronics.de Git - linux-beck.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2017 07:33:12 +0000 (08:33 +0100)
commit9a335996bfcfce1fd7fe7549fb1a679489774b99
tree6bc22cbc52678337108022d780aacfeddffd90a4
parentfed1e89a16e3684e1bd218e1d6a78f83b5ceb865
IB/rxe: Prevent from completer to operate on non valid QP

commit 2d4b21e0a2913612274a69a3ba1bfee4cffc6e77 upstream.

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: 8700e3e7c485 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/sw/rxe/rxe_qp.c