summaryrefslogtreecommitdiff
path: root/include/linux/rfkill.h
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2017-05-11 14:58:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-09 20:42:44 +0300
commitda57b1f7e74fe050f2996614b19fb780f4174639 (patch)
treeddec151a664a1dfaf4c66afa383b5b9fd67a81e4 /include/linux/rfkill.h
parente1cadf7c4af2e51f5ac6f078a128d4b71bbaa601 (diff)
downloadlinux-da57b1f7e74fe050f2996614b19fb780f4174639.tar.xz
xen-netfront: avoid crashing on resume after a failure in talk_to_netback()
commit d86b5672b1adb98b4cdd6fbf0224bbfb03db6e2e upstream. 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> Cc: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/rfkill.h')
0 files changed, 0 insertions, 0 deletions