+31
−7
Loading
Access to nvme_ctrlr.ref should be protected with nvme_ctrlr.mutex, which was missing in the code responsible for changing DH-HMAC-CHAP keys. Additionally, this patch handles the case where nmve_ctrlr.ref = 0, which can happen when a controller was released, but hasn't been detached yet. Reported-by:Marcin Spiewak <marcin.spiewak@intel.com> Signed-off-by:
Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I3cd28dc612ab3b751bec1d380bf881ed59c30cb5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24997 Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot