| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Ioctl handler |
|---|
| 3 | 4 | * Linux ethernet bridge |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Authors: |
|---|
| 6 | 7 | * 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. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #include <linux/capability.h> |
|---|
| .. | .. |
|---|
| 107 | 103 | |
|---|
| 108 | 104 | /* |
|---|
| 109 | 105 | * 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 |
|---|
| 111 | 107 | * to do the translation for 32/64bit ioctl compatibility. |
|---|
| 112 | 108 | */ |
|---|
| 113 | 109 | static int old_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) |
|---|
| .. | .. |
|---|
| 246 | 242 | if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) |
|---|
| 247 | 243 | return -EPERM; |
|---|
| 248 | 244 | |
|---|
| 249 | | - br_stp_set_enabled(br, args[1]); |
|---|
| 250 | | - ret = 0; |
|---|
| 245 | + ret = br_stp_set_enabled(br, args[1], NULL); |
|---|
| 251 | 246 | break; |
|---|
| 252 | 247 | |
|---|
| 253 | 248 | case BRCTL_SET_BRIDGE_PRIORITY: |
|---|