From eef60d21affdd70a06715efd19abf8baaa43320d Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Sat, 21 Jul 2018 06:34:54 -0700 Subject: [PATCH] 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 Signed-off-by: Todd Poynor Signed-off-by: Greg Kroah-Hartman --- gasket_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gasket_core.c b/gasket_core.c index 45ffb60..5e269c4 100644 --- a/gasket_core.c +++ b/gasket_core.c @@ -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);