The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ebb16d5e93934c27ccf4e54e780db0b80bd4142e

commit ebb16d5e93934c27ccf4e54e780db0b80bd4142e
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-04-07 17:46:48 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2022-04-07 17:46:48 +0000

    mlx5: Pass the correct data pointer to the add_dst_cb instead of NULL.
    
    Reported by:    -Wunused-but-set-variable
    Reviewed by:    hselasky
    Differential Revision:  https://reviews.freebsd.org/D34812
---
 sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c 
b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c
index ecfac9adb98a..749d128fe348 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c
@@ -1521,7 +1521,7 @@ static void call_to_add_rule_notifiers(struct 
mlx5_flow_rule *dst,
                        mutex_unlock(&dst->clients_lock);
                        err  = iter_handler->add_dst_cb(dst,
                                                        is_new_rule,
-                                                       NULL,
+                                                       data,
                                                        
iter_handler->client_context);
                        if (err)
                                break;

Reply via email to