lpfc: Fix scsi prep dma buf error.
authorJames Smart <james.smart@avagotech.com>
Fri, 22 May 2015 14:42:39 +0000 (10:42 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Sat, 13 Jun 2015 15:22:04 +0000 (08:22 -0700)
commit5116fbf136ea21b8678a85eee5c03508736ada9f
tree937f71f6ddc91f4c40574d40f6667e8b493202de
parent8b0dff14164d3f43eba8365950b506d898e0e1e6
lpfc: Fix scsi prep dma buf error.

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>
drivers/scsi/lpfc/lpfc_scsi.c