lpfc: Fix scsi prep dma buf error.
authorJames Smart <james.smart@avagotech.com>
Fri, 22 May 2015 14:42:39 +0000 (10:42 -0400)
committerJiri Slaby <jslaby@suse.cz>
Wed, 2 Sep 2015 13:49:54 +0000 (15:49 +0200)
commit62d80e38ed89ca1e7dc9424c7c4438d46be924d9
treea6d715d7d83fd87e5ae7656552f96248aec56d86
parenta67172a013953664b1dad03c648200c70b90506c
lpfc: Fix scsi prep dma buf error.

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.

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: Jiri Slaby <jslaby@suse.cz>
drivers/scsi/lpfc/lpfc_scsi.c