summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorGerald Schaefer <gerald.schaefer@linux.ibm.com>2024-03-07 12:27:02 +0100
committerHeiko Carstens <hca@linux.ibm.com>2024-03-13 09:23:45 +0100
commit9a349be3ca4d670f1279bb16139d55e902e70789 (patch)
tree5659b793df1ad4e44a5370849f72a35eeffe1e27 /drivers/s390
parent4e8477aeb46dfe74e829c06ea588dd00ba20c8cc (diff)
downloadlinux-stable-9a349be3ca4d670f1279bb16139d55e902e70789.tar.gz
linux-stable-9a349be3ca4d670f1279bb16139d55e902e70789.tar.bz2
linux-stable-9a349be3ca4d670f1279bb16139d55e902e70789.zip
s390/dcssblk: fix virtual vs physical address confusion
Fix virtual vs physical address confusion. This does not fix a bug since virtual and physical address spaces are currently the same. dax_direct_access() should receive a virtual kernel address in kaddr. Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/block/dcssblk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c
index 9c8f529b827c..cf108744d410 100644
--- a/drivers/s390/block/dcssblk.c
+++ b/drivers/s390/block/dcssblk.c
@@ -919,7 +919,7 @@ __dcssblk_direct_access(struct dcssblk_dev_info *dev_info, pgoff_t pgoff,
dev_sz = dev_info->end - dev_info->start + 1;
if (kaddr)
- *kaddr = (void *) dev_info->start + offset;
+ *kaddr = __va(dev_info->start + offset);
if (pfn)
*pfn = __pfn_to_pfn_t(PFN_DOWN(dev_info->start + offset),
PFN_DEV|PFN_SPECIAL);