]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rxe: Fix up rxe_qp_cleanup()
authorAndrew Boyer <andrew.boyer@dell.com>
Mon, 28 Aug 2017 20:11:55 +0000 (16:11 -0400)
committerDoug Ledford <dledford@redhat.com>
Mon, 28 Aug 2017 23:12:34 +0000 (19:12 -0400)
commite26bddf4dc98b3e44d086d41b0700f6a524b6f25
tree756d13980e4ceac6710275a09a7e25269cd7a2bb
parentfda72dc346863d01ba4e7bd6dc976839d104689f
IB/rxe: Fix up rxe_qp_cleanup()

Replace sk_dst_get()/dst_release() in rxe_qp_cleanup() with sk_dst_reset().
sk_dst_get() takes a new reference on dst, so the dst_release() doesn't
actually release the original reference, which was the design intent.

Fixes: 29fd12a76aa1 ("IB/rxe: Cache dst in QP instead of getting it...")
Signed-off-by: Andrew Boyer <andrew.boyer@dell.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_qp.c