s390/hypfs_sprp: remove unneeded DMA zone allocation
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 19 Jan 2024 16:19:46 +0000 (17:19 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 9 Feb 2024 12:58:14 +0000 (13:58 +0100)
Remove GFP_DMA flag when allocating memory to be used for diagnose 304.
Diagnose 304 can access memory beyond the DMA zone.

Suggested-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/hypfs/hypfs_sprp.c

index e66b4de..9fc3f0d 100644 (file)
@@ -74,7 +74,7 @@ static int __hypfs_sprp_ioctl(void __user *user_area)
        int rc;
 
        rc = -ENOMEM;
-       data = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA);
+       data = (void *)get_zeroed_page(GFP_KERNEL);
        diag304 = kzalloc(sizeof(*diag304), GFP_KERNEL);
        if (!data || !diag304)
                goto out;