nvme-fc: remove double put reference if admin connect fails
authorJames Smart <jsmart2021@gmail.com>
Wed, 29 Nov 2017 23:11:37 +0000 (15:11 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 15 Dec 2017 14:13:33 +0000 (15:13 +0100)
commit4596e752db02d47038cd7c965419789ab15d1985
treefcca11527ffc8f263f74ef655b2d758fe254a2cf
parentb224f6134d72e3493a023b5bea917f9a6beea0c8
nvme-fc: remove double put reference if admin connect fails

There are two put references in the failure case of initial
create_association. The first put actually frees the controller, thus the
second put references freed memory.

Remove the unnecessary 2nd put.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c