From: Vitaly Kuznetsov Date: Sat, 1 Aug 2015 23:08:08 +0000 (-0700) Subject: Drivers: hv: don't do hypercalls when hypercall_page is NULL X-Git-Tag: omap-for-v4.3/fixes-merge-window~46^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7646eaa7678fe5adc42247b4bdfbe9d9db8c253;p=pandora-kernel.git 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 Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed