From: Dan Carpenter <dan.carpenter@linaro.org>
To: Armin Wolf <W_Armin@gmx.de>
Cc: arnd@arndb.de, gregkh@linuxfoundation.org, hkallweit1@gmail.com,
linux@roeck-us.net, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org, ukleinek@kernel.org
Subject: Re: [PATCH] eeprom: ee1004: Fix locking issues in ee1004_probe()
Date: Sat, 13 Jul 2024 20:18:50 -0500 [thread overview]
Message-ID: <5eda1109-5656-4a0d-9444-6a18bb1b382c@suswa.mountain> (raw)
In-Reply-To: <20240713234813.21746-1-W_Armin@gmx.de>
On Sun, Jul 14, 2024 at 01:48:13AM +0200, Armin Wolf wrote:
> Currently, the devres-based management of ee1004_bus_data has
> several issues when it comes to locking:
>
> 1. It does not call mutex_unlock() before returning an error.
>
> 2. When encountering an error, it deadlocks when trying to recursively
> lock a mutex.
>
> Fix this by moving the mutex-protected bus data initialization into
> a separate function so that devm_add_action_or_reset() is called
> without the mutex being held.
>
> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> Fixes: 55d57ef6fa97 ("eeprom: ee1004: Use devres for bus data cleanup")
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
> ---
Looks good. :)
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
regards,
dan carpenter
prev parent reply other threads:[~2024-07-14 1:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-13 23:48 Armin Wolf
2024-07-14 1:18 ` Dan Carpenter [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=5eda1109-5656-4a0d-9444-6a18bb1b382c@suswa.mountain \
--to=dan.carpenter@linaro.org \
--cc=W_Armin@gmx.de \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=hkallweit1@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=ukleinek@kernel.org \
/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
all inboxes | Powered by JetHome®