lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240822072047.3097740-1-wenst@chromium.org>
Date: Thu, 22 Aug 2024 15:20:43 +0800
From: Chen-Yu Tsai <wenst@...omium.org>
To: Mark Brown <broonie@...nel.org>,
	Liam Girdwood <lgirdwood@...il.com>
Cc: Chen-Yu Tsai <wenst@...omium.org>,
	linux-kernel@...r.kernel.org,
	linux-arm-kernel@...ts.infradead.org
Subject: [PATCH 0/3] regulator: Minor cleanups

Hi,

Here are some cleanups for some bits that I saw while reworking my I2C
device tree component prober to use of_regulator_bulk_get_all().
These are not directly related to that series, so I send them
separately here.

Patch 1 makes the regulator_get*() function misuse error message easier
to understand.

Patch 2 makes of_regulator_bulk_get_all() pass out the error code from
regulator_get() instead of replacing it with -EINVAL.

Patch 3 makes of_regulator_bulk_get_all() clean up *everything* and not
touch the passed in pointer on error, and explicitly documents this
behavior.

Please have a look and merge if possible.


Thanks
ChenYu

[1] https://lore.kernel.org/linux-arm-kernel/20240808095931.2649657-1-wenst@chromium.org/

Chen-Yu Tsai (3):
  regulator: Clarify error message for "id == NULL" in _regulator_get()
  regulator: Return actual error in of_regulator_bulk_get_all()
  regulator: Fully clean up on error in of_regulator_bulk_get_all()

 drivers/regulator/core.c         |  2 +-
 drivers/regulator/of_regulator.c | 23 +++++++++++++----------
 2 files changed, 14 insertions(+), 11 deletions(-)

-- 
2.46.0.184.g6999bdac58-goog


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ