net: Zero terminate ifr_name in dev_ifname().
authorDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2017 20:33:24 +0000 (13:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:49:32 +0000 (08:49 -0700)
commit0b83249a57adc1afd19c7e4818731d61d3a8ce7e
tree292e770b561884f849dedb700f1a3030090fadde
parenta62bc8d336e3e93538c3c5dd64a36db5efcf2fa8
net: Zero terminate ifr_name in dev_ifname().

[ Upstream commit 63679112c536289826fec61c917621de95ba2ade ]

The ifr.ifr_name is passed around and assumed to be NULL terminated.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev_ioctl.c