Patch "PCI: mt7621: Add sentinel to quirks table" has been added to the 5.15-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

    PCI: mt7621: Add sentinel to quirks table

to the 5.15-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:
     pci-mt7621-add-sentinel-to-quirks-table.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 148f0633fdb43ebe2ad624b6f7c58dfaa371cd74
Author: John Thomson <git@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date:   Tue Dec 6 06:46:45 2022 +1000

    PCI: mt7621: Add sentinel to quirks table
    
    [ Upstream commit 19098934f910b4d47cb30251dd39ffa57bef9523 ]
    
    Current driver is missing a sentinel in the struct soc_device_attribute
    array, which causes an oops when assessed by the
    soc_device_match(mt7621_pcie_quirks_match) call.
    
    This was only exposed once the CONFIG_SOC_MT7621 mt7621 soc_dev_attr
    was fixed to register the SOC as a device, in:
    
    commit 7c18b64bba3b ("mips: ralink: mt7621: do not use kzalloc too early")
    
    Fix it by adding the required sentinel.
    
    Link: https://lore.kernel.org/lkml/26ebbed1-0fe9-4af9-8466-65f841d0b382@xxxxxxxxxxxxxxxx
    Link: https://lore.kernel.org/r/20221205204645.301301-1-git@xxxxxxxxxxxxxxxxxxxxxxxxxxx
    Fixes: b483b4e4d3f6 ("staging: mt7621-pci: add quirks for 'E2' revision using 'soc_device_attribute'")
    Signed-off-by: John Thomson <git@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>
    Acked-by: Sergio Paracuellos <sergio.paracuellos@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c
index c4f57bb63482..b520d1e0edd1 100644
--- a/drivers/staging/mt7621-pci/pci-mt7621.c
+++ b/drivers/staging/mt7621-pci/pci-mt7621.c
@@ -511,7 +511,8 @@ static int mt7621_pcie_register_host(struct pci_host_bridge *host)
 }
 
 static const struct soc_device_attribute mt7621_pcie_quirks_match[] = {
-	{ .soc_id = "mt7621", .revision = "E2" }
+	{ .soc_id = "mt7621", .revision = "E2" },
+	{ /* sentinel */ }
 };
 
 static int mt7621_pcie_probe(struct platform_device *pdev)



[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