[PATCH v1 0/2] iio: adc: Check for error from devm_mutex_init()

Andy Shevchenko posted 2 patches 3 weeks, 4 days ago
drivers/iio/adc/ad4000.c  | 4 +++-
drivers/iio/adc/pac1921.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
[PATCH v1 0/2] iio: adc: Check for error from devm_mutex_init()
Posted by Andy Shevchenko 3 weeks, 4 days ago
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().

Andy Shevchenko (2):
  iio: adc: ad4000: Check for error code from devm_mutex_init() call
  iio: adc: pac1921: Check for error code from devm_mutex_init() call

 drivers/iio/adc/ad4000.c  | 4 +++-
 drivers/iio/adc/pac1921.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
2.43.0.rc1.1336.g36b5255a03ac
Re: [PATCH v1 0/2] iio: adc: Check for error from devm_mutex_init()
Posted by Jonathan Cameron 3 weeks, 3 days ago
On Wed, 30 Oct 2024 18:19:17 +0200
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> 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().
> 
> Andy Shevchenko (2):
>   iio: adc: ad4000: Check for error code from devm_mutex_init() call
>   iio: adc: pac1921: Check for error code from devm_mutex_init() call
> 
Oops. Missed this in review obviously.

Applied.
>  drivers/iio/adc/ad4000.c  | 4 +++-
>  drivers/iio/adc/pac1921.c | 4 +++-
>  2 files changed, 6 insertions(+), 2 deletions(-)
>