|
@@ -4609,6 +4609,9 @@ megasas_mgmt_fw_ioctl(struct megasas_instance *instance,
|
|
* For each user buffer, create a mirror buffer and copy in
|
|
* For each user buffer, create a mirror buffer and copy in
|
|
*/
|
|
*/
|
|
for (i = 0; i < ioc->sge_count; i++) {
|
|
for (i = 0; i < ioc->sge_count; i++) {
|
|
|
|
+ if (!ioc->sgl[i].iov_len)
|
|
|
|
+ continue;
|
|
|
|
+
|
|
kbuff_arr[i] = dma_alloc_coherent(&instance->pdev->dev,
|
|
kbuff_arr[i] = dma_alloc_coherent(&instance->pdev->dev,
|
|
ioc->sgl[i].iov_len,
|
|
ioc->sgl[i].iov_len,
|
|
&buf_handle, GFP_KERNEL);
|
|
&buf_handle, GFP_KERNEL);
|