aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/dev_ioctl.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@nvidia.com>2021-08-05 11:29:02 +0300
committerDavid S. Miller <davem@davemloft.net>2021-08-05 11:36:59 +0100
commitcbd7ad29a5070a75dd076118ce7e400ce4b8d8d1 (patch)
tree4fe3e38ec93de465ef6522321db277cf4cfb6cca /net/core/dev_ioctl.c
parentnet: bridge: fix ioctl locking (diff)
downloadwireguard-linux-cbd7ad29a5070a75dd076118ce7e400ce4b8d8d1.tar.xz
wireguard-linux-cbd7ad29a5070a75dd076118ce7e400ce4b8d8d1.zip
net: bridge: fix ioctl old_deviceless bridge argument
Commit ad2f99aedf8f ("net: bridge: move bridge ioctls out of .ndo_do_ioctl") changed the source of the argument copy in bridge's old_deviceless() from args[1] (user ptr to device name) to uarg (ptr to ioctl arguments) causing wrong device name to be used. Example (broken, bridge exists but is up): $ brctl delbr bridge bridge bridge doesn't exist; can't delete it Example (working): $ brctl delbr bridge bridge bridge is still up; can't delete it Fixes: ad2f99aedf8f ("net: bridge: move bridge ioctls out of .ndo_do_ioctl") Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev_ioctl.c')
0 files changed, 0 insertions, 0 deletions