From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Mary Strodl <mstrodl@csh.rit.edu>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>
Subject: [PATCH v2 0/2] gpio: Check for error from devm_mutex_init()
Date: Wed, 30 Oct 2024 19:36:50 +0200 [thread overview]
Message-ID: <20241030174132.2113286-1-andriy.shevchenko@linux.intel.com> (raw)
Ignoring error checking from devm calls is a bad practice in general.
While not critical today, it may become a problem tomorrow.
Fix this for devm_mutex_init().
In v2:
- fixed obvious typo (Mary)
- collected tags (Mary, Wolfram)
Andy Shevchenko (2):
gpio: mpsse: Check for error code from devm_mutex_init() call
gpio: sloppy-logic-analyzer: Check for error code from
devm_mutex_init() call
drivers/gpio/gpio-mpsse.c | 9 +++++++--
drivers/gpio/gpio-sloppy-logic-analyzer.c | 4 +++-
2 files changed, 10 insertions(+), 3 deletions(-)
--
2.43.0.rc1.1336.g36b5255a03ac
next reply other threads:[~2024-10-30 17:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-30 17:36 Andy Shevchenko [this message]
2024-10-30 17:36 ` [PATCH v2 1/2] gpio: mpsse: Check for error code from devm_mutex_init() call Andy Shevchenko
2024-10-30 17:36 ` [PATCH v2 2/2] gpio: sloppy-logic-analyzer: " Andy Shevchenko
2024-10-31 12:47 ` (subset) [PATCH v2 0/2] gpio: Check for error from devm_mutex_init() Bartosz Golaszewski
2024-10-31 12:48 ` Bartosz Golaszewski
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=20241030174132.2113286-1-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=brgl@bgdev.pl \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mstrodl@csh.rit.edu \
--cc=wsa+renesas@sang-engineering.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;
as well as URLs for NNTP newsgroup(s).