diff options
author | Mark Brown <broonie@linaro.org> | 2014-03-05 23:43:51 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-05 23:43:51 -0500 |
commit | e37912fd0bdf174e934af6cfb0002a077867b644 (patch) | |
tree | c661c8a6e20e013abf4dd5ac27b9a70f218ff290 /drivers/net/xen-netfront.c | |
parent | 8535736c27cc4e25b9948d857138315f45b6fa34 (diff) | |
parent | 37f204164dfb0186a0caf20bc3e3120080bcd788 (diff) |
Merge branch 'pm-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm into spi-pl022
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index ff04d4f95baa..f9daa9e183f2 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -1832,7 +1832,6 @@ static void netback_changed(struct xenbus_device *dev, | |||
1832 | case XenbusStateReconfiguring: | 1832 | case XenbusStateReconfiguring: |
1833 | case XenbusStateReconfigured: | 1833 | case XenbusStateReconfigured: |
1834 | case XenbusStateUnknown: | 1834 | case XenbusStateUnknown: |
1835 | case XenbusStateClosed: | ||
1836 | break; | 1835 | break; |
1837 | 1836 | ||
1838 | case XenbusStateInitWait: | 1837 | case XenbusStateInitWait: |
@@ -1847,6 +1846,10 @@ static void netback_changed(struct xenbus_device *dev, | |||
1847 | netdev_notify_peers(netdev); | 1846 | netdev_notify_peers(netdev); |
1848 | break; | 1847 | break; |
1849 | 1848 | ||
1849 | case XenbusStateClosed: | ||
1850 | if (dev->state == XenbusStateClosed) | ||
1851 | break; | ||
1852 | /* Missed the backend's CLOSING state -- fallthrough */ | ||
1850 | case XenbusStateClosing: | 1853 | case XenbusStateClosing: |
1851 | xenbus_frontend_closed(dev); | 1854 | xenbus_frontend_closed(dev); |
1852 | break; | 1855 | break; |