[PATCH 05/11] Correct allocations of ddb_entry.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As qla4xxx_alloc_ddb() is called from process-context.

Signed-off-by: Andrew Vasquez <andrew.vasquez@xxxxxxxxxx>

Signed-off-by: Ravi Anand <ravi.anand@xxxxxxxxxx>


---

 drivers/scsi/qla4xxx/ql4_init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

1a707252f20e748a8a4fc151405c71c0259794c0
diff --git a/drivers/scsi/qla4xxx/ql4_init.c b/drivers/scsi/qla4xxx/ql4_init.c
index 6d10809..004782c 100644
--- a/drivers/scsi/qla4xxx/ql4_init.c
+++ b/drivers/scsi/qla4xxx/ql4_init.c
@@ -527,7 +527,7 @@ qla4xxx_alloc_ddb(scsi_qla_host_t * ha, 
 	DEBUG2(printk("scsi%ld: %s: fw_ddb_index [%d]\n", ha->host_no,
 	    __func__, fw_ddb_index));
 
-	ddb_entry = (struct ddb_entry *)kmalloc(sizeof(*ddb_entry), GFP_ATOMIC);
+	ddb_entry = (struct ddb_entry *)kmalloc(sizeof(*ddb_entry), GFP_KERNEL);
 	if (ddb_entry == NULL) {
 		DEBUG2(printk("scsi%ld: %s: Unable to allocate memory "
 		    "to add fw_ddb_index [%d]\n", ha->host_no, __func__,
-- 
1.2.4.g9201-dirty


-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux