staging: gasket: fix check_and_invoke_callback log param
authorTodd Poynor <toddpoynor@google.com>
Sat, 21 Jul 2018 13:34:54 +0000 (06:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jul 2018 11:56:45 +0000 (13:56 +0200)
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>
drivers/staging/gasket/gasket_core.c

index 40e46ca5228c8fce50069c36e63155072d9dd121..2cd232230845c5b54b172fc457034792f3d7a2ea 100644 (file)
@@ -205,7 +205,7 @@ static inline int check_and_invoke_callback(
 {
        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) {
                mutex_lock(&gasket_dev->mutex);
                ret = cb_function(gasket_dev);