]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: Fix potential PM refcount imbalance
authorTakashi Iwai <tiwai@suse.de>
Wed, 14 Jul 2021 17:00:21 +0000 (19:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jul 2021 21:57:55 +0000 (14:57 -0700)
commita813f860dd51b161cc9f5d9eadef06c8922fbce3
tree896f87c1ee99a0b534600f1ea5fba1683ec92f37
parent767fa514183b4d2cdba0e34208c0e7d94941bb0f
r8152: Fix potential PM refcount imbalance

rtl8152_close() takes the refcount via usb_autopm_get_interface() but
it doesn't release when RTL8152_UNPLUG test hits.  This may lead to
the imbalance of PM refcount.  This patch addresses it.

Link: https://bugzilla.suse.com/show_bug.cgi?id=1186194
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c