.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2007 Red Hat, Inc. All rights reserved. |
---|
3 | | - * |
---|
4 | | - * This copyrighted material is made available to anyone wishing to use, |
---|
5 | | - * modify, copy, or redistribute it subject to the terms and conditions |
---|
6 | | - * of the GNU General Public License v.2. |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #include <net/genetlink.h> |
---|
.. | .. |
---|
65 | 62 | return 0; |
---|
66 | 63 | } |
---|
67 | 64 | |
---|
68 | | -static const struct genl_ops dlm_nl_ops[] = { |
---|
| 65 | +static const struct genl_small_ops dlm_nl_ops[] = { |
---|
69 | 66 | { |
---|
70 | 67 | .cmd = DLM_CMD_HELLO, |
---|
| 68 | + .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP, |
---|
71 | 69 | .doit = user_cmd, |
---|
72 | 70 | }, |
---|
73 | 71 | }; |
---|
.. | .. |
---|
75 | 73 | static struct genl_family family __ro_after_init = { |
---|
76 | 74 | .name = DLM_GENL_NAME, |
---|
77 | 75 | .version = DLM_GENL_VERSION, |
---|
78 | | - .ops = dlm_nl_ops, |
---|
79 | | - .n_ops = ARRAY_SIZE(dlm_nl_ops), |
---|
| 76 | + .small_ops = dlm_nl_ops, |
---|
| 77 | + .n_small_ops = ARRAY_SIZE(dlm_nl_ops), |
---|
80 | 78 | .module = THIS_MODULE, |
---|
81 | 79 | }; |
---|
82 | 80 | |
---|
.. | .. |
---|
115 | 113 | |
---|
116 | 114 | void dlm_timeout_warn(struct dlm_lkb *lkb) |
---|
117 | 115 | { |
---|
118 | | - struct sk_buff *uninitialized_var(send_skb); |
---|
| 116 | + struct sk_buff *send_skb; |
---|
119 | 117 | struct dlm_lock_data *data; |
---|
120 | 118 | size_t size; |
---|
121 | 119 | int rv; |
---|