diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2017-05-11 13:58:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-11 21:38:50 -0400 |
commit | d86b5672b1adb98b4cdd6fbf0224bbfb03db6e2e (patch) | |
tree | b16d295eb0fd3a6dbef29514eba363d3b8e82770 /tools/testing | |
parent | cb395b2010879a8461aa1b1c37025769708c32cf (diff) | |
download | linux-d86b5672b1adb98b4cdd6fbf0224bbfb03db6e2e.tar.bz2 |
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>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions