The order of the connect and persistent argument for the recursive
call to __discover is in the wrong order:
__discover(.., bool connect, bool persistent, enum nvme_print_flags flags)
Signed-off-by: Daniel Wagner <dwagner@suse.de>
if (child) {
if (discover)
__discover(child, defcfg, raw,
- persistent,
- true, flags);
+ true, persistent, flags);
if (e->subtype != NVME_NQN_NVME &&
!persistent) {
nvme_disconnect_ctrl(child);