Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9b1ef5f authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Initialise the NFSv4.1 slot table highest_used_slotid correctly

parent d24bab93
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5677,7 +5677,7 @@ static void nfs4_add_and_init_slots(struct nfs4_slot_table *tbl,
		tbl->slots = new;
		tbl->slots = new;
		tbl->max_slots = max_slots;
		tbl->max_slots = max_slots;
	}
	}
	tbl->highest_used_slotid = -1;	/* no slot is currently used */
	tbl->highest_used_slotid = NFS4_NO_SLOT;
	for (i = 0; i < tbl->max_slots; i++)
	for (i = 0; i < tbl->max_slots; i++)
		tbl->slots[i].seq_nr = ivalue;
		tbl->slots[i].seq_nr = ivalue;
	spin_unlock(&tbl->slot_tbl_lock);
	spin_unlock(&tbl->slot_tbl_lock);