diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index 32437a989..6e4893b97 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -1256,7 +1256,7 @@ retry: } } - kfree(pmap); + vfree(pmap); if (!found) { res = false; diff --git a/qla2x00t/qla_attr.c b/qla2x00t/qla_attr.c index 9fdb3770f..d141659c9 100644 --- a/qla2x00t/qla_attr.c +++ b/qla2x00t/qla_attr.c @@ -411,7 +411,7 @@ qla2x00_show_port_database(struct device *dev, } } - kfree(pmap); + vfree(pmap); } next: diff --git a/qla2x00t/qla_mbx.c b/qla2x00t/qla_mbx.c index e674a9675..3ddae00ae 100644 --- a/qla2x00t/qla_mbx.c +++ b/qla2x00t/qla_mbx.c @@ -1315,8 +1315,8 @@ out: #ifdef CONFIG_SCSI_QLA2XXX_TARGET /* * qla2x00_get_node_name_list - * Issue get node name list mailbox command, kmalloc() - * and return the resulting list. Caller must kfree() it! + * Issue get node name list mailbox command, vmalloc() + * and return the resulting list. Caller must vfree() it! * * Input: * ha = adapter state pointer. @@ -1388,7 +1388,7 @@ qla2x00_get_node_name_list(scsi_qla_host_t *vha, bool include_initiators, left = 0; - list = kzalloc(dma_size, GFP_KERNEL); + list = vmalloc(dma_size); if (list == NULL) { printk(KERN_ERR "%s(%ld): failed to allocate node names" " list structure.\n", __func__, vha->host_no);