staging: gasket: core: hold reference on device while in use
authorTodd Poynor <toddpoynor@google.com>
Sat, 28 Jul 2018 19:33:24 +0000 (12:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jul 2018 06:05:45 +0000 (08:05 +0200)
commit5b6e80cc9806a5cf78f68df2b6b64812b51d91c9
tree182cac21ed72e2d6825b3602ac9e665c99bbbc6d
parent6caa58413692cf3d62c5cc57800a92166c37423b
staging: gasket: core: hold reference on device while in use

Hold a reference on the struct device while a pointer to that
device is in use by gasket.

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