Re: [Cocci] [PATCH] coccinelle: api: semantic patch to use pm_runtime_resume_and_get

2021-04-26 Thread Markus Elfring
… > +// Keywords: kwd … Will any information become more helpful and succinct for such a SmPL script variant? Regards, Markus ___ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci

[Cocci] [PATCH] coccinelle: api: semantic patch to use pm_runtime_resume_and_get

2021-04-25 Thread Julia Lawall
pm_runtime_get_sync keeps a reference count on failure, which can lead to leaks. pm_runtime_resume_and_get drops the reference count in the failure case. This rule very conservatively follows the definition of pm_runtime_resume_and_get to address the cases where the reference count is unlikely