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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 14 Jun 2020 15:32:39 +0300
From:   Andy Shevchenko <>
To:     Navid Emamdoost <>
Cc:     Eric Anholt <>, David Airlie <>,
        Daniel Vetter <>,
        dri-devel <>,
        Linux Kernel Mailing List <>,
        Navid Emamdoost <>,,
        Kangjie Lu <>, Stephen McCamant <>
Subject: Re: [PATCH] drm/vc4: fix ref count leak in vc4_dsi_encoder_enable

On Sun, Jun 14, 2020 at 9:55 AM Navid Emamdoost
<> wrote:
> in vc4_dsi_encoder_enable, the call to pm_runtime_get_sync increments
> the counter even in case of failure, leading to incorrect
> ref count. In case of failure, decrement the ref count before returning.


> +out:
> +       pm_runtime_put(dev);

Better to use pm_runtime_put_noidle() for error case.
And here is a change of semantics, i.e. before your patch there was no
put at all. How did you test this?

With Best Regards,
Andy Shevchenko

Powered by blists - more mailing lists