xen-netback: remove 'hotplug-status' once it has served its purpose
authorPaul Durrant <pdurrant@amazon.com>
Tue, 17 Dec 2019 13:32:18 +0000 (13:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 07:03:33 +0000 (23:03 -0800)
commit1f2565780e9b7218cf92c7630130e82dcc0fe9c2
treea1fd76dfe0ab276b3f3a84361cea900eda27515e
parentf55c3188df84248558f33b13bba4c2817dda78a7
xen-netback: remove 'hotplug-status' once it has served its purpose

Removing the 'hotplug-status' node in netback_remove() is wrong; the script
may not have completed. Only remove the node once the watch has fired and
has been unregistered.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Acked-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/xenbus.c