Sergey Gorenko
da343b6d90
IB/mlx5: Fix incorrect size of klms in the memory region
The value of mr->ndescs greater than mr->max_descs is set in the
function mlx5_ib_sg_to_klms() if sg_nents is greater than
mr->max_descs. This is an invalid value and it causes the
following error when registering mr:
mlx5_0:dump_cqe:276:(pid 193): dump error cqe
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000030: 00 00 00 00 0f 00 78 06 25 00 00 8b 08 1e 8f d3
Cc: <stable@vger.kernel.org> # 4.5
Fixes: b005d31647
("mlx5: Add arbitrary sg list support")
Signed-off-by: Sergey Gorenko <sergeygo@mellanox.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-02-28 12:10:32 -07:00
..
2017-10-18 12:10:36 -04:00
2017-12-21 16:06:07 -07:00
2017-12-21 16:06:07 -07:00
2018-01-08 11:42:22 -07:00
2018-01-29 12:58:34 -07:00
2015-04-02 16:33:42 -04:00
2016-08-02 14:32:51 -04:00
2017-07-24 10:34:28 -04:00
2015-05-30 18:24:51 -07:00
2018-01-08 11:42:23 -07:00
2018-01-30 09:30:00 -07:00
2017-07-24 10:34:28 -04:00
2017-09-25 11:47:24 -04:00
2018-01-29 12:58:34 -07:00
2018-02-28 12:10:32 -07:00
2018-01-03 17:26:59 -07:00
2018-01-30 09:30:00 -07:00
2017-08-29 08:30:20 -04:00