Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d97ae00e authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman
Browse files

Staging: hv: Cleanup vmalloc calls



The subject says it all. There is no need to
specify different page protection bits based
on the architecture.

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e3fe0bb6
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -230,12 +230,7 @@ int hv_init(void)
	* Allocate the hypercall page memory
	* virtaddr = osd_page_alloc(1);
	*/
#ifdef __x86_64__
	virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL_EXEC);
#else
	virtaddr =  __vmalloc(PAGE_SIZE, GFP_KERNEL,
			__pgprot(__PAGE_KERNEL & (~_PAGE_NX)));
#endif

	if (!virtaddr) {
		DPRINT_ERR(VMBUS,