sfp: ensure we clean up properly on bus registration failure
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 10 Jul 2018 11:05:31 +0000 (12:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:07:07 +0000 (13:07 +0200)
commite756fc5b02c62e57c4124f562e1e8888a346b953
tree2ac50f49bbef38c72edcc82a6f9babecca7bb2ef
parente6ab069a0e67e4284dee6e67640492fc64d4a32a
sfp: ensure we clean up properly on bus registration failure

[ Upstream commit f20a4c46b984331a509528fa2b84125c617ef98b ]

We fail to correctly clean up after a bus registration failure, which
can lead to an incorrect assumption about the registration state of
the upstream or sfp cage.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/sfp-bus.c