staging: gasket: fix check_and_invoke_callback log param

The message should be passed the callback function pointer, not
the pointer to the gasket device.

Signed-off-by: Zhongze Hu <frankhu@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Todd Poynor
2018-07-21 06:34:54 -07:00
committed by Alex Van Damme
parent 0a9d6ccbbf
commit eef60d21af

View File

@@ -205,7 +205,7 @@ static inline int check_and_invoke_callback(
{ {
int ret = 0; int ret = 0;
gasket_nodev_error("check_and_invoke_callback %p", gasket_dev); gasket_nodev_error("check_and_invoke_callback %p", cb_function);
if (cb_function) { if (cb_function) {
mutex_lock(&gasket_dev->mutex); mutex_lock(&gasket_dev->mutex);
ret = cb_function(gasket_dev); ret = cb_function(gasket_dev);