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>] [day] [month] [year] [list]
Date:   Sun, 31 May 2020 17:01:26 +0200
From:   Markus Elfring <>
To:     Dinghao Liu <>,
        "Rafael J. Wysocki" <>,
        Kangjie Lu <>, Sebastian Reichel <>
Subject: Re: [PATCH v2] power: supply: bq24190_charger: Fix runtime PM
 imbalance in bq24190_sysfs_store()

> pm_runtime_get_sync() increments the runtime PM usage counter even
> it returns an error code. Thus a pairing decrement is needed on
> the error handling path to keep the counter balanced.

How do you think about a wording variant like the following?

   Change description:
   The PM runtime usage counter is incremented even if a call of
   the function “pm_runtime_get_sync” failed. Thus decrement it also
   in an error case so that the reference counting is kept consistent.

Would you like to add the tag “Fixes” to the commit message?


Powered by blists - more mailing lists