]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/staging/gasket: Use refcount_read()
authorTodd Poynor <toddpoynor@google.com>
Sat, 7 Jul 2018 06:43:10 +0000 (23:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jul 2018 08:02:09 +0000 (10:02 +0200)
commitec84f8b22112a54ceaf08d275c07296c2bfeba85
treee58c65d7e60cd7c59a0bf7995b9a1822b47f8609
parent015cf8d97bb99dd4199342214a65e51d17ea818e
drivers/staging/gasket: Use refcount_read()

Use the refcount_read accessor function, avoid reaching into refcount
and atomic struct fields.

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