Patch "um: virt-pci: fix platform map offset" has been added to the 6.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    um: virt-pci: fix platform map offset

to the 6.7-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     um-virt-pci-fix-platform-map-offset.patch
and it can be found in the queue-6.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 75893189c48648d899836812e53811fc2c2a9312
Author: Vincent Whitchurch <vincent.whitchurch@xxxxxxxx>
Date:   Fri Sep 1 15:35:43 2023 +0200

    um: virt-pci: fix platform map offset
    
    [ Upstream commit 32253f00ac8a8073bf6db4bfe9d6511cc93c4aef ]
    
    The offset is currently always zero so the backend can't distinguish
    between accesses to different ioremapped areas.
    
    Fixes: 522c532c4fe7 ("virt-pci: add platform bus support")
    Signed-off-by: Vincent Whitchurch <vincent.whitchurch@xxxxxxxx>
    Signed-off-by: Richard Weinberger <richard@xxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/um/drivers/virt-pci.c b/arch/um/drivers/virt-pci.c
index ffe2ee8a0246..97a37c062997 100644
--- a/arch/um/drivers/virt-pci.c
+++ b/arch/um/drivers/virt-pci.c
@@ -971,7 +971,7 @@ static long um_pci_map_platform(unsigned long offset, size_t size,
 	*ops = &um_pci_device_bar_ops;
 	*priv = &um_pci_platform_device->resptr[0];
 
-	return 0;
+	return offset;
 }
 
 static const struct logic_iomem_region_ops um_pci_platform_ops = {




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux