+4
−4
+3
−11
+24
−17
+5
−1
Loading
The subsystem->ns array may be resized with realloc(), so old ns pointers can become invalid. To fix this, allocate each ns as a separate object, and change the subsystem->ns[] array to point to the namespaces rather than containing them. Change-Id: I873502fa90cf840e4eaa9b1abd94a95afe0f737f Signed-off-by:Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/399726 Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>