diff options
Diffstat (limited to 'drivers/scsi/csiostor/csio_wr.c')
-rw-r--r-- | drivers/scsi/csiostor/csio_wr.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/scsi/csiostor/csio_wr.c b/drivers/scsi/csiostor/csio_wr.c index 4255ce264abf..773da14cfa14 100644 --- a/drivers/scsi/csiostor/csio_wr.c +++ b/drivers/scsi/csiostor/csio_wr.c | |||
@@ -232,7 +232,7 @@ csio_wr_alloc_q(struct csio_hw *hw, uint32_t qsize, uint32_t wrsize, | |||
232 | 232 | ||
233 | q = wrm->q_arr[free_idx]; | 233 | q = wrm->q_arr[free_idx]; |
234 | 234 | ||
235 | q->vstart = pci_alloc_consistent(hw->pdev, qsz, &q->pstart); | 235 | q->vstart = pci_zalloc_consistent(hw->pdev, qsz, &q->pstart); |
236 | if (!q->vstart) { | 236 | if (!q->vstart) { |
237 | csio_err(hw, | 237 | csio_err(hw, |
238 | "Failed to allocate DMA memory for " | 238 | "Failed to allocate DMA memory for " |
@@ -240,12 +240,6 @@ csio_wr_alloc_q(struct csio_hw *hw, uint32_t qsize, uint32_t wrsize, | |||
240 | return -1; | 240 | return -1; |
241 | } | 241 | } |
242 | 242 | ||
243 | /* | ||
244 | * We need to zero out the contents, importantly for ingress, | ||
245 | * since we start with a generatiom bit of 1 for ingress. | ||
246 | */ | ||
247 | memset(q->vstart, 0, qsz); | ||
248 | |||
249 | q->type = type; | 243 | q->type = type; |
250 | q->owner = owner; | 244 | q->owner = owner; |
251 | q->pidx = q->cidx = q->inc_idx = 0; | 245 | q->pidx = q->cidx = q->inc_idx = 0; |