OSDN Git Service

staging: gasket: core: hold reference to pci_dev while used
authorTodd Poynor <toddpoynor@google.com>
Sun, 29 Jul 2018 19:36:34 +0000 (12:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Jul 2018 08:54:50 +0000 (10:54 +0200)
commit8dd8a48b9a7dae5493494a8603adddfdf1914716
tree838d25ad20033bf5898abeb66652ab2559bea1f0
parentc7346797f5fb7be8e139fbeb1324669e7cb2ef9a
staging: gasket: core: hold reference to pci_dev while used

Hold a reference on the struct pci_dev while a pointer to it is held in
the gasket data structures.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_core.c