patch "usb: typec: intel_pmc_mux: Add missed error check for" added to usb-linus
Subsystems (4)
This is a note to let you know that I've just added the patch titled
usb: typec: intel_pmc_mux: Add missed error check for
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 843fabdd7623271330af07f1b7fbd7fabe33c8de Mon Sep 17 00:00:00 2001
From: Andy Shevchenko <[email protected]>
Date: Mon, 7 Jun 2021 23:50:06 +0300
Subject: usb: typec: intel_pmc_mux: Add missed error check for
devm_ioremap_resource()
devm_ioremap_resource() can return an error, add missed check for it.
--- drivers/usb/typec/mux/intel_pmc_mux.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/usb/typec/mux/intel_pmc_mux.c +5 -0
@@ -586,6 +586,11 @@ static int pmc_usb_probe_iom(struct pmc_usb *pmc)return -ENOMEM ; } +if (IS_ERR (pmc->iom_base)) { +put_device (&adev->dev); +return PTR_ERR (pmc->iom_base); + } + pmc->iom_adev = adev;return 0 ;
Signature · 1 line
2.32.0