summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm/ibmvnic.c
diff options
context:
space:
mode:
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>2017-06-15 06:50:07 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-15 20:29:00 +0200
commitc8b2ad0a4a9015228874708f83a17b7bdb194f84 (patch)
tree5fff23c3f2f44a5bf94a04c16b199fd07a39f6ac /drivers/net/ethernet/ibm/ibmvnic.c
parentibmvnic: Ensure that TX queues are disabled in __ibmvnic_close (diff)
downloadlinux-c8b2ad0a4a9015228874708f83a17b7bdb194f84.tar.xz
linux-c8b2ad0a4a9015228874708f83a17b7bdb194f84.zip
ibmvnic: Sanitize entire SCRQ buffer on reset
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>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/ibm/ibmvnic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index 134ab295c1d6..03ddf6e1b5b3 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.c
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
@@ -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,