Vitaly Kuznetsov d86b5672b1 xen-netfront: avoid crashing on resume after a failure in talk_to_netback()
Unavoidable crashes in netfront_resume() and netback_changed() after a
previous fail in talk_to_netback() (e.g. when we fail to read MAC from
xenstore) were discovered. The failure path in talk_to_netback() does
unregister/free for netdev but we don't reset drvdata and we try accessing
it after resume.

Fix the bug by removing the whole xen device completely with
device_unregister(), this guarantees we won't have any calls into netfront
after a failure.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-11 21:38:50 -04:00
..
2017-05-09 15:15:47 -07:00
2017-05-09 10:01:15 -07:00
2017-05-09 15:15:47 -07:00
2017-05-09 10:07:33 -07:00
2017-05-05 18:49:20 -07:00
2017-05-09 15:40:28 -07:00
2017-05-09 10:01:15 -07:00
2017-05-04 19:15:35 -07:00
2017-05-04 19:15:35 -07:00
2017-04-30 11:45:31 -07:00
2017-05-05 18:16:23 -07:00
2017-05-09 15:15:47 -07:00
2017-05-04 19:15:35 -07:00
2017-05-09 15:15:47 -07:00
2017-05-05 19:33:07 -07:00
2017-05-09 15:15:47 -07:00
2017-05-03 12:16:25 -07:00
2017-04-27 11:54:49 +01:00
2017-05-08 19:03:25 -07:00
2017-05-02 17:34:32 -07:00
2017-04-20 09:54:24 +02:00
2017-05-08 19:03:25 -07:00
2017-05-09 10:01:15 -07:00
2017-05-09 15:15:47 -07:00
2017-05-09 15:15:47 -07:00
2017-05-04 19:15:35 -07:00
2017-05-01 14:13:28 -07:00
2017-05-04 19:15:35 -07:00
2017-05-09 10:01:15 -07:00
2017-05-03 12:16:25 -07:00
2017-05-08 18:49:23 -07:00
2017-05-05 19:33:07 -07:00
2017-05-05 11:36:44 -07:00
2017-05-08 19:03:25 -07:00