scsi: fcoe: move fcoe_interface_remove() out of fcoe_interface_cleanup()
authorHannes Reinecke <hare@suse.de>
Fri, 15 Sep 2017 11:12:12 +0000 (13:12 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Sep 2017 19:43:29 +0000 (15:43 -0400)
commit9eed785b02fec925fd6ed7272ad774a803647758
tree65c38289f36a359766d8f7aa71fa9769fedbae66
parent2a8ee61685a9fd7f054b0596865290baffe84c16
scsi: fcoe: move fcoe_interface_remove() out of fcoe_interface_cleanup()

This closes a possible race condition in _fcoe_create() where we drop
the rtnl_lock() before calling fcoe_interface_remove().

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe.c