From: Greg KH <greg@kroah.com>
To: "Jernej Škrabec" <jernej.skrabec@gmail.com>
Cc: stable-commits@vger.kernel.org, yuancan@huawei.com,
Sasha Levin <sashal@kernel.org>,
stable@vger.kernel.org, Chen-Yu Tsai <wens@csie.org>,
Samuel Holland <samuel@sholland.org>,
Cezary Rojewski <cezary.rojewski@intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
Liam Girdwood <liam.r.girdwood@linux.intel.com>,
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
Ranjani Sridharan <ranjani.sridharan@linux.intel.com>,
Kai Vehmanen <kai.vehmanen@linux.intel.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>
Subject: Re: Patch "bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()" has been added to the 5.10-stable tree
Date: Tue, 7 Feb 2023 12:13:17 +0100 [thread overview]
Message-ID: <Y+IyTebz+i9PVi1s@kroah.com> (raw)
In-Reply-To: <12145054.O9o76ZdvQC@jernej-laptop>
On Mon, Feb 06, 2023 at 05:13:49PM +0100, Jernej Škrabec wrote:
> Hi Sasha!
>
> Dne ponedeljek, 06. februar 2023 ob 14:45:06 CET je Sasha Levin napisal(a):
> > This is a note to let you know that I've just added the patch titled
> >
> > bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()
> >
> > to the 5.10-stable tree which can be found at:
> >
> > http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=sum
> > mary
> >
> > The filename of the patch is:
> > bus-sunxi-rsb-fix-error-handling-in-sunxi_rsb_init.patch
> > and it can be found in the queue-5.10 subdirectory.
> >
> > If you, or anyone else, feels it should not be added to the stable tree,
> > please let <stable@vger.kernel.org> know about it.
> >
> >
> >
> > commit ad954fdfb62b7541a93ce1a12da025a8f698d8a8
> > Author: Yuan Can <yuancan@huawei.com>
> > Date: Wed Nov 23 09:42:00 2022 +0000
> >
> > bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()
> >
> > [ Upstream commit f71eaf2708be7831428eacae7db25d8ec6b8b4c5 ]
> >
> > The sunxi_rsb_init() returns the platform_driver_register() directly
> > without checking its return value, if platform_driver_register() failed,
> > the sunxi_rsb_bus is not unregistered.
> > Fix by unregister sunxi_rsb_bus when platform_driver_register() failed.
> >
> > Fixes: d787dcdb9c8f ("bus: sunxi-rsb: Add driver for Allwinner Reduced
> > Serial Bus") Signed-off-by: Yuan Can <yuancan@huawei.com>
> > Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
> > Link:
> > https://lore.kernel.org/r/20221123094200.12036-1-yuancan@huawei.com
> > Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
> > Signed-off-by: Sasha Levin <sashal@kernel.org>
> >
> > diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c
> > index f8c29b888e6b..98cbb18f17fa 100644
> > --- a/drivers/bus/sunxi-rsb.c
> > +++ b/drivers/bus/sunxi-rsb.c
> > @@ -781,7 +781,13 @@ static int __init sunxi_rsb_init(void)
> > return ret;
> > }
> >
> > - return platform_driver_register(&sunxi_rsb_driver);
> > + ret = platform_driver_register(&sunxi_rsb_driver);
> > + if (ret) {
> > + bus_unregister(&sunxi_rsb_bus);
> > + return ret;
> > + }
> > +
> > + return 0;
> > }
> > module_init(sunxi_rsb_init);
> >
> > diff --git a/sound/soc/intel/boards/bytcr_rt5651.c
> > b/sound/soc/intel/boards/bytcr_rt5651.c index bf8b87d45cb0..2c76f0abeeca
> > 100644
> > --- a/sound/soc/intel/boards/bytcr_rt5651.c
> > +++ b/sound/soc/intel/boards/bytcr_rt5651.c
> > @@ -918,7 +918,6 @@ static int snd_byt_rt5651_mc_probe(struct
> > platform_device *pdev) if (adev) {
> > snprintf(byt_rt5651_codec_name,
> sizeof(byt_rt5651_codec_name),
> > "i2c-%s", acpi_dev_name(adev));
> > - put_device(&adev->dev);
> > byt_rt5651_dais[dai_index].codecs->name =
> byt_rt5651_codec_name;
> > } else {
> > dev_err(&pdev->dev, "Error cannot find '%s' dev\n",
> mach->id);
> > @@ -927,6 +926,7 @@ static int snd_byt_rt5651_mc_probe(struct
> > platform_device *pdev)
> >
> > codec_dev = bus_find_device_by_name(&i2c_bus_type, NULL,
> >
> byt_rt5651_codec_name);
> > + acpi_dev_put(adev);
> > if (!codec_dev)
> > return -EPROBE_DEFER;
>
> Above bytcr_rt5651.c changes are unrelated to original commit. Did you merge
> two commits by mistake?
Yes, something went wrong, I've dropped that chunk now.
thanks for the review!
greg k-h
prev parent reply other threads:[~2023-02-07 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230206134506.1652464-1-sashal@kernel.org>
2023-02-06 16:13 ` Patch "bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()" has been added to the 5.10-stable tree Jernej Škrabec
2023-02-07 11:13 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y+IyTebz+i9PVi1s@kroah.com \
--to=greg@kroah.com \
--cc=broonie@kernel.org \
--cc=cezary.rojewski@intel.com \
--cc=jernej.skrabec@gmail.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=ranjani.sridharan@linux.intel.com \
--cc=samuel@sholland.org \
--cc=sashal@kernel.org \
--cc=stable-commits@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=tiwai@suse.com \
--cc=wens@csie.org \
--cc=yuancan@huawei.com \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox