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  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]
Date:	Tue, 14 Oct 2014 14:35:10 +0200
From:	Krzysztof Kozlowski <>
To:	Thomas Gleixner <>,
	Ingo Molnar <>,
	"H. Peter Anvin" <>,,
	Linus Walleij <>,
	Samuel Ortiz <>,
	Lee Jones <>,
	Sebastian Reichel <>,
	Dmitry Eremin-Solenikov <>,
	David Woodhouse <>,
	Krzysztof Kozlowski <>,
	Konrad Rzeszutek Wilk <>,
	"Rafael J. Wysocki" <>,
	Lv Zheng <>,
	Bjorn Helgaas <>,,,
Cc:	Anton Vorontsov <>, Pavel Machek <>,
	Kyungmin Park <>,
	Marek Szyprowski <>,
	Bartlomiej Zolnierkiewicz <>
Subject: [PATCH 0/7] power_supply: Decrement the device reference counter


The reference counter of device allocated for power supply was
incremented with each call to power_supply_get_by_name() and

Add a symmetric 'put' operation so the device could be released after
final put_device() call during supply unregistering.

Rebased on next-20141007 + mine [1] patchset.
Tested on Trats2 board (max77693 + charger manager).

Kindly asking for reviewing/testing other drivers.

Best regards,

[1] power_supply: Add API for safe access of get_property-like function attrs

Krzysztof Kozlowski (7):
  power_supply: Add power_supply_put for decrementing device reference
  power: charger-manager: Decrement the power supply's device reference
  x86/olpc/xo1/sci: Use newly added power_supply_put API
  x86/olpc/xo15/sci: Use newly added power_supply_put API
  power: 88pm860x_charger: Decrement the power supply's device reference
  power: bq2415x_charger: Decrement the power supply's device reference
  mfd: ab8500: Decrement the power supply's device reference counter

 arch/x86/platform/olpc/olpc-xo1-sci.c  |  4 +-
 arch/x86/platform/olpc/olpc-xo15-sci.c |  4 +-
 drivers/mfd/ab8500-sysctrl.c           |  2 +
 drivers/power/88pm860x_charger.c       | 11 +++++-
 drivers/power/bq2415x_charger.c        |  6 ++-
 drivers/power/charger-manager.c        | 69 ++++++++++++++++++++++------------
 drivers/power/power_supply_core.c      | 41 ++++++++++++++++++++
 include/linux/power_supply.h           |  1 +
 8 files changed, 108 insertions(+), 30 deletions(-)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists