]> git.hungrycats.org Git - linux/commit
USB: core: Add hub_get() and hub_put() routines
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 15 Mar 2024 17:04:50 +0000 (13:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:11:55 +0000 (15:11 +0200)
commit0a0bb873b538729273aea4a05b3cc8d43a6f0697
tree28afddd652f95d5783c877aada1825ff09749d10
parentdbdf66250d2d33e8b27352fcb901de79f3521057
USB: core: Add hub_get() and hub_put() routines

commit ee113b860aa169e9a4d2c167c95d0f1961c6e1b8 upstream.

Create hub_get() and hub_put() routines to encapsulate the kref_get()
and kref_put() calls in hub.c.  The new routines will be used by the
next patch in this series.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/604da420-ae8a-4a9e-91a4-2d511ff404fb@rowland.harvard.edu
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c
drivers/usb/core/hub.h