From: David Miller <davem@davemloft.net>
To: navid.emamdoost@gmail.com
Cc: nicolas.ferre@microchip.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, emamd001@umn.edu, wu000273@umn.edu,
kjlu@umn.edu, smccaman@umn.edu
Subject: Re: [PATCH] net: macb: fix ref count leaking via pm_runtime_get_sync
Date: Mon, 15 Jun 2020 13:42:23 -0700 (PDT) [thread overview]
Message-ID: <20200615.134223.983361696577901385.davem@davemloft.net> (raw)
In-Reply-To: <20200614054803.26757-1-navid.emamdoost@gmail.com>
From: Navid Emamdoost <navid.emamdoost@gmail.com>
Date: Sun, 14 Jun 2020 00:48:03 -0500
> in macb_mdio_write, macb_mdio_read, and at91ether_open,
> pm_runtime_get_sync is called which increments the counter even in case of
> failure, leading to incorrect ref count.
> In case of failure, decrement the ref count before returning.
>
> Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
This does not apply to the net tree.
next prev parent reply other threads:[~2020-06-15 20:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-14 5:48 [PATCH] net: macb: fix ref count leaking via pm_runtime_get_sync Navid Emamdoost
2020-06-15 20:42 ` David Miller [this message]
2020-06-14 8:56 Markus Elfring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200615.134223.983361696577901385.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=emamd001@umn.edu \
--cc=kjlu@umn.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=navid.emamdoost@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=smccaman@umn.edu \
--cc=wu000273@umn.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).