]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ethtool: Null-terminate filename passed to ethtool_ops::flash_device
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 1 Feb 2012 09:32:25 +0000 (09:32 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 7 May 2012 21:44:14 +0000 (14:44 -0700)
commit4c590db80cbf037ec61187114fad1e1a0dcf91e4
tree4b98e48f84821d756dd55d857920504dadc2ec57
parent281f8a1872bb5782537c4f9a4575845fa9175962
ethtool: Null-terminate filename passed to ethtool_ops::flash_device

The parameters for ETHTOOL_FLASHDEV include a filename, which ought to
be null-terminated.  Currently the only driver that implements
ethtool_ops::flash_device attempts to add a null terminator if
necessary, but does it wrongly.  Do it in the ethtool core instead.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_ethtool.c