Skip to content

Commit

Permalink
ibmvnic: Sanitize entire SCRQ buffer on reset
Browse files Browse the repository at this point in the history
Fixup a typo so that the entire SCRQ buffer is cleaned.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thomas Falcon authored and David S. Miller committed Jun 15, 2017
1 parent 4c2687a commit c8b2ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ibm/ibmvnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c8b2ad0

Please sign in to comment.