RDMA/iw_cxgb4: allocate enough space for debugfs "qps" dump
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>
This commit is contained in:
parent
3d4e79949c
commit
68cebcab59
|
@ -317,7 +317,7 @@ static int qp_open(struct inode *inode, struct file *file)
|
||||||
idr_for_each(&qpd->devp->qpidr, count_idrs, &count);
|
idr_for_each(&qpd->devp->qpidr, count_idrs, &count);
|
||||||
spin_unlock_irq(&qpd->devp->lock);
|
spin_unlock_irq(&qpd->devp->lock);
|
||||||
|
|
||||||
qpd->bufsize = count * 128;
|
qpd->bufsize = count * 180;
|
||||||
qpd->buf = vmalloc(qpd->bufsize);
|
qpd->buf = vmalloc(qpd->bufsize);
|
||||||
if (!qpd->buf) {
|
if (!qpd->buf) {
|
||||||
kfree(qpd);
|
kfree(qpd);
|
||||||
|
|
Loading…
Reference in New Issue