]> git.baikalelectronics.ru Git - kernel.git/commit
net: socket: fix SIOCGIFNAME in compat
authorJohannes Berg <johannes.berg@intel.com>
Fri, 25 Jan 2019 21:43:19 +0000 (22:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2019 18:19:31 +0000 (10:19 -0800)
commitfb9e80f9fa3e1c7ae3eebcf9c7818482a7dff1b3
treef21b9ab160102971f554119849f23ee8cba11af6
parent80bddb2777eb1f593df7e9945deb6e63d8b47849
net: socket: fix SIOCGIFNAME in compat

As reported by Robert O'Callahan in
https://bugzilla.kernel.org/show_bug.cgi?id=202273
reverting the previous changes in this area broke
the SIOCGIFNAME ioctl in compat again (I'd previously
fixed it after his previous report of breakage in
https://bugzilla.kernel.org/show_bug.cgi?id=199469).

This is obviously because I fixed SIOCGIFNAME more or
less by accident.

Fix it explicitly now by making it pass through the
restored compat translation code.

Cc: stable@vger.kernel.org
Fixes: 5a762d408817 ("kill dev_ifname32()")
Reported-by: Robert O'Callahan <robert@ocallahan.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c