summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2024-01-19 17:19:46 +0100
committerHeiko Carstens <hca@linux.ibm.com>2024-02-09 13:58:14 +0100
commit791833f22431aacdec6d489cc138e82c40709450 (patch)
treeed9e3551a35419294e49c37eae53d32bd57f678f
parenteec561024b3e733ba4ed3515ba81b45f5e647d0d (diff)
downloadlinux-791833f22431aacdec6d489cc138e82c40709450.tar.gz
linux-791833f22431aacdec6d489cc138e82c40709450.tar.bz2
linux-791833f22431aacdec6d489cc138e82c40709450.zip
s390/hypfs_sprp: remove unneeded DMA zone allocation
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>
-rw-r--r--arch/s390/hypfs/hypfs_sprp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/hypfs/hypfs_sprp.c b/arch/s390/hypfs/hypfs_sprp.c
index e66b4de8913f..9fc3f0dae8f0 100644
--- a/arch/s390/hypfs/hypfs_sprp.c
+++ b/arch/s390/hypfs/hypfs_sprp.c
@@ -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;