Re: [PATCH] net/mlx4: fix crash when configure is not called
From: Shahaf Shuler <hidden>
Date: 2018-05-28 13:46:07
From: Shahaf Shuler <hidden>
Date: 2018-05-28 13:46:07
Sunday, May 27, 2018 10:05 AM, Yongseok Koh:
Subject: [PATCH] net/mlx4: fix crash when configure is not called
Although uncommon, applications may destroy a device immediately after
probing it without going through dev_configure() first.
This patch addresses a crash which occurs when mlx4_dev_close() calls
mlx4_mr_release() due to an uninitialized entry in the private structure.
And the device's B-tree should be allocated once.
Fixes: 9797bfcce1c9 ("net/mlx4: add new memory region support")
Signed-off-by: Adrien Mazarguil <redacted>
Signed-off-by: Xueming Li <redacted>
Signed-off-by: Yongseok Koh <redacted>
---Applied to next-net-mlx, thanks.