hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/net/bridge/br_ioctl.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Ioctl handler
34 * Linux ethernet bridge
45 *
56 * Authors:
67 * Lennert Buytenhek <buytenh@gnu.org>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; either version
11
- * 2 of the License, or (at your option) any later version.
128 */
139
1410 #include <linux/capability.h>
....@@ -107,7 +103,7 @@
107103
108104 /*
109105 * Legacy ioctl's through SIOCDEVPRIVATE
110
- * This interface is deprecated because it was too difficult to
106
+ * This interface is deprecated because it was too difficult
111107 * to do the translation for 32/64bit ioctl compatibility.
112108 */
113109 static int old_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
....@@ -246,8 +242,7 @@
246242 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN))
247243 return -EPERM;
248244
249
- br_stp_set_enabled(br, args[1]);
250
- ret = 0;
245
+ ret = br_stp_set_enabled(br, args[1], NULL);
251246 break;
252247
253248 case BRCTL_SET_BRIDGE_PRIORITY: