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

Commit c8b2ad0a authored by Thomas Falcon's avatar Thomas Falcon Committed by David S. Miller
Browse files

ibmvnic: Sanitize entire SCRQ buffer on reset



Fixup a typo so that the entire SCRQ buffer is cleaned.

Signed-off-by: default avatarThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4c2687a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1752,7 +1752,7 @@ static int reset_one_sub_crq_queue(struct ibmvnic_adapter *adapter,
		scrq->irq = 0;
	}

	memset(scrq->msgs, 0, 2 * PAGE_SIZE);
	memset(scrq->msgs, 0, 4 * PAGE_SIZE);
	scrq->cur = 0;

	rc = h_reg_sub_crq(adapter->vdev->unit_address, scrq->msg_token,