Patch "cxl/acpi: Return 'rc' instead of '0' in cxl_parse_cfmws()" has been added to the 6.1-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

    cxl/acpi: Return 'rc' instead of '0' in cxl_parse_cfmws()

to the 6.1-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:
     cxl-acpi-return-rc-instead-of-0-in-cxl_parse_cfmws.patch
and it can be found in the queue-6.1 subdirectory.

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



commit 98e0430b52da7c682580ad126c64f665b0d7b4a5
Author: Breno Leitao <leitao@xxxxxxxxxx>
Date:   Fri Jul 14 02:31:46 2023 -0700

    cxl/acpi: Return 'rc' instead of '0' in cxl_parse_cfmws()
    
    [ Upstream commit 91019b5bc7c2c5e6f676cce80ee6d12b2753d018 ]
    
    Driver initialization returned success (return 0) even if the
    initialization (cxl_decoder_add() or acpi_table_parse_cedt()) failed.
    
    Return the error instead of swallowing it.
    
    Fixes: f4ce1f766f1e ("cxl/acpi: Convert CFMWS parsing to ACPI sub-table helpers")
    Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230714093146.2253438-2-leitao@xxxxxxxxxx
    Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>
    Signed-off-by: Vishal Verma <vishal.l.verma@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c
index 55907a94cb388..07b184382707e 100644
--- a/drivers/cxl/acpi.c
+++ b/drivers/cxl/acpi.c
@@ -155,7 +155,7 @@ static int cxl_parse_cfmws(union acpi_subtable_headers *header, void *arg,
 		rc = cxl_decoder_autoremove(dev, cxld);
 	if (rc) {
 		dev_err(dev, "Failed to add decode range: %pr", res);
-		return 0;
+		return rc;
 	}
 	dev_dbg(dev, "add: %s node: %d range [%#llx - %#llx]\n",
 		dev_name(&cxld->dev),



[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