summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/mshyperv.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2015-08-02 01:08:08 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-05 07:25:29 +0200
commitd7646eaa7678fe5adc42247b4bdfbe9d9db8c253 (patch)
tree3f8aa489b8aa7cf247aaf5fc306877b8332ffbfb /arch/x86/kernel/cpu/mshyperv.c
parentDrivers: hv: vmbus: add special kexec handler (diff)
downloadlinux-d7646eaa7678fe5adc42247b4bdfbe9d9db8c253.tar.xz
linux-d7646eaa7678fe5adc42247b4bdfbe9d9db8c253.zip
Drivers: hv: don't do hypercalls when hypercall_page is NULL
At the very late stage of kexec a driver (which are not being unloaded) can try to post a message or signal an event. This will crash the kernel as we already did hv_cleanup() and the hypercall page is NULL. Move all common (between 32 and 64 bit code) declarations to the beginning of the do_hypercall() function. Unfortunately we have to write the !hypercall_page check twice to not mix declarations and code. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/kernel/cpu/mshyperv.c')
0 files changed, 0 insertions, 0 deletions