net: ethtool: clear heap allocations for ethtool function
authorAustin Kim <austindh.kim@gmail.com>
Wed, 9 Jun 2021 02:34:25 +0000 (03:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jun 2021 20:53:31 +0000 (13:53 -0700)
commit80ec82e3d2c1fab42eeb730aaa7985494a963d3f
tree005e0cc9daf9c36df5e27d98ff5f4f591e4736b0
parentf2386cf7c5f4ff5d7b584f5d92014edd7df6c676
net: ethtool: clear heap allocations for ethtool function

Several ethtool functions leave heap uncleared (potentially) by
drivers. This will leave the unused portion of heap unchanged and
might copy the full contents back to userspace.

Signed-off-by: Austin Kim <austindh.kim@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/ioctl.c