aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_iscsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r--drivers/scsi/scsi_transport_iscsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index 71e54a64adca..2730d507e585 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -1117,10 +1117,9 @@ iscsi_register_transport(struct iscsi_transport *tt)
1117 if (priv) 1117 if (priv)
1118 return NULL; 1118 return NULL;
1119 1119
1120 priv = kmalloc(sizeof(*priv), GFP_KERNEL); 1120 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
1121 if (!priv) 1121 if (!priv)
1122 return NULL; 1122 return NULL;
1123 memset(priv, 0, sizeof(*priv));
1124 INIT_LIST_HEAD(&priv->list); 1123 INIT_LIST_HEAD(&priv->list);
1125 priv->iscsi_transport = tt; 1124 priv->iscsi_transport = tt;
1126 1125