Loading
bdev/nvme: use FOREACH_SAFE when cleaning up mdns ctxs
We need to use FOREACH_SAFE variants when traversing a list or tailq and removing or freeing its entries. In this case, it was just freeing them, so also remove them while traversing the list. This isn't strictly necessary, but follows general practice across the SPDK code base. Fixes issue #2977. Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: I001e7fe9dc406b8981a555384839bb432ac801d1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18157 Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot