]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/iw_cxgb4: allocate enough space for debugfs "qps" dump
authorHariprasad S <hariprasad@chelsio.com>
Thu, 9 Jun 2016 19:35:12 +0000 (01:05 +0530)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 14:44:16 +0000 (10:44 -0400)
With IPv6 addresses, the "qps" debugfs is running out of space and
truncating the output.  Bump the required size accordingly.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/device.c

index ae2e8b23d2dde589059b2c0a9ebdd077e17a3668..071d7332ec061489080a9ef55c1a6cbd9622af4d 100644 (file)
@@ -317,7 +317,7 @@ static int qp_open(struct inode *inode, struct file *file)
        idr_for_each(&qpd->devp->qpidr, count_idrs, &count);
        spin_unlock_irq(&qpd->devp->lock);
 
-       qpd->bufsize = count * 128;
+       qpd->bufsize = count * 180;
        qpd->buf = vmalloc(qpd->bufsize);
        if (!qpd->buf) {
                kfree(qpd);