staging: gasket: sysfs: hold reference to device while in use
authorTodd Poynor <toddpoynor@google.com>
Sun, 29 Jul 2018 19:36:35 +0000 (12:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Jul 2018 08:54:50 +0000 (10:54 +0200)
commit34cf3ea8dae7f0aa2ab544c1d30a803016af779e
treeabefe9abd8bae2476c304cfecd83f9ed7f63caf7
parent8dd8a48b9a7dae5493494a8603adddfdf1914716
staging: gasket: sysfs: hold reference to device while in use

Hold a reference to the struct device while a gasket sysfs mapping
exists for the device and a pointer to the struct is kept in the mapping
data structures.

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