aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfad_bsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/bfad_bsg.c')
-rw-r--r--drivers/scsi/bfa/bfad_bsg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfad_bsg.c b/drivers/scsi/bfa/bfad_bsg.c
index 7c884f881180..5d163ca1b366 100644
--- a/drivers/scsi/bfa/bfad_bsg.c
+++ b/drivers/scsi/bfa/bfad_bsg.c
@@ -3252,8 +3252,9 @@ bfad_fcxp_map_sg(struct bfad_s *bfad, void *payload_kbuf,
3252 struct bfa_sge_s *sg_table; 3252 struct bfa_sge_s *sg_table;
3253 int sge_num = 1; 3253 int sge_num = 1;
3254 3254
3255 buf_base = kzalloc((sizeof(struct bfad_buf_info) + 3255 buf_base = kcalloc(sizeof(struct bfad_buf_info) +
3256 sizeof(struct bfa_sge_s)) * sge_num, GFP_KERNEL); 3256 sizeof(struct bfa_sge_s),
3257 sge_num, GFP_KERNEL);
3257 if (!buf_base) 3258 if (!buf_base)
3258 return NULL; 3259 return NULL;
3259 3260