On Sat Jan 3 15:46:47 2026 +0800, Haoxiang Li wrote:
> Add release_mem_region() if ioremap() fails to release the memory
> region obtained by cx25821_get_resources().
> 
> Signed-off-by: Haoxiang Li <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 drivers/media/pci/cx25821/cx25821-core.c | 1 +
 1 file changed, 1 insertion(+)

---

diff --git a/drivers/media/pci/cx25821/cx25821-core.c 
b/drivers/media/pci/cx25821/cx25821-core.c
index 6627fa9166d3..a7336be44474 100644
--- a/drivers/media/pci/cx25821/cx25821-core.c
+++ b/drivers/media/pci/cx25821/cx25821-core.c
@@ -908,6 +908,7 @@ static int cx25821_dev_setup(struct cx25821_dev *dev)
 
        if (!dev->lmmio) {
                CX25821_ERR("ioremap failed, maybe increasing __VMALLOC_RESERVE 
in page.h\n");
+               release_mem_region(dev->base_io_addr, 
pci_resource_len(dev->pci, 0));
                cx25821_iounmap(dev);
                return -ENOMEM;
        }
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to