]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IB/mlx5: Update the dev in reg_create
authorMajd Dibbiny <majd@mellanox.com>
Tue, 6 Jan 2015 11:56:01 +0000 (13:56 +0200)
committerRoland Dreier <roland@purestorage.com>
Wed, 18 Feb 2015 06:13:50 +0000 (22:13 -0800)
commit7eae20db6adf721d0c14ad2a37208278ce4f11dc
tree2731831cb230602c9fc03f3a723110dded274fc9
parentbfa76d49576599a4b9f9b7a71f23d73d6dcff735
IB/mlx5: Update the dev in reg_create

When we create an MR using reg_create, the mlx5_ib_dev pointer is not
updated on the new MR. This results in a kernel panics for ODP MRs
while handling page faults, when the mlx5_ib_update_mtt function uses
the invalid device pointer.

Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/mr.c