diff options
-rw-r--r-- | drivers/s390/scsi/zfcp_fc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index 2a1cbb74b99b..6f8ab43a4856 100644 --- a/drivers/s390/scsi/zfcp_fc.c +++ b/drivers/s390/scsi/zfcp_fc.c | |||
@@ -400,7 +400,7 @@ static int zfcp_fc_adisc(struct zfcp_port *port) | |||
400 | struct zfcp_adapter *adapter = port->adapter; | 400 | struct zfcp_adapter *adapter = port->adapter; |
401 | int ret; | 401 | int ret; |
402 | 402 | ||
403 | adisc = kmem_cache_alloc(zfcp_data.adisc_cache, GFP_ATOMIC); | 403 | adisc = kmem_cache_zalloc(zfcp_data.adisc_cache, GFP_ATOMIC); |
404 | if (!adisc) | 404 | if (!adisc) |
405 | return -ENOMEM; | 405 | return -ENOMEM; |
406 | 406 | ||
@@ -493,7 +493,7 @@ static struct zfcp_fc_gpn_ft *zfcp_alloc_sg_env(int buf_num) | |||
493 | if (!gpn_ft) | 493 | if (!gpn_ft) |
494 | return NULL; | 494 | return NULL; |
495 | 495 | ||
496 | req = kmem_cache_alloc(zfcp_data.gpn_ft_cache, GFP_KERNEL); | 496 | req = kmem_cache_zalloc(zfcp_data.gpn_ft_cache, GFP_KERNEL); |
497 | if (!req) { | 497 | if (!req) { |
498 | kfree(gpn_ft); | 498 | kfree(gpn_ft); |
499 | gpn_ft = NULL; | 499 | gpn_ft = NULL; |