[PATCH 3.12 26/33] lpfc: Fix scsi prep dma buf error.

2015-09-15 Thread Jiri Slaby
From: James Smart 3.12-stable review patch. If anyone has any objections, please let me know. === commit 5116fbf136ea21b8678a85eee5c03508736ada9f upstream. Didn't check for less-than-or-equal zero. Means we may later call scsi_dma_unmap() even though we don't have valid mappings.

[PATCH 3.12 26/33] lpfc: Fix scsi prep dma buf error.

2015-09-15 Thread Jiri Slaby
From: James Smart 3.12-stable review patch. If anyone has any objections, please let me know. === commit 5116fbf136ea21b8678a85eee5c03508736ada9f upstream. Didn't check for less-than-or-equal zero. Means we may later call scsi_dma_unmap() even though we