OSDN Git Service

cxgb4: kfree mhp after the debug print
authorShaobo He <shaobo@cs.utah.edu>
Thu, 28 Feb 2019 22:38:38 +0000 (15:38 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Mar 2019 20:41:30 +0000 (16:41 -0400)
commit952a3cc9c06a6143147ccdd108c5ef8ac9a6454c
tree339be30c48b683ee1dfcb3cd139ae25b40c363f8
parentd757c60eca9b22f4d108929a24401e0fdecda0b1
cxgb4: kfree mhp after the debug print

In function `c4iw_dealloc_mw`, variable mhp's value is printed after
freed, it is clearer to have the print before the kfree.

Otherwise racing threads could allocate another mhp with the same pointer
value and create confusing tracing.

Signed-off-by: Shaobo He <shaobo@cs.utah.edu>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/mem.c