lpfc: Fix scsi prep dma buf error.
authorJames Smart <james.smart@avagotech.com>
Fri, 22 May 2015 14:42:39 +0000 (10:42 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 28 Sep 2015 22:57:02 +0000 (18:57 -0400)
commitcf76d3de6e54afb361b2cb6d70893518cb7aa57c
treecd51d4d31a6903c5b1718c4638706b67065b56b5
parent573f4d61b7ffb05b400018d81dc52c9f823c3178
lpfc: Fix scsi prep dma buf error.

[ Upstream commit 5116fbf136ea21b8678a85eee5c03508736ada9f ]

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.

Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: James Smart <james.smart@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c