commit | 786f528119722f564a22ad953411374e06116333 | [log] [tgz] |
---|---|---|
author | Ben Hutchings <bhutchings@solarflare.com> | Wed Feb 01 09:32:25 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Feb 01 14:47:17 2012 -0500 |
tree | 122ca6128b967fc4e91ff9a974181536a55f64ed | |
parent | efcdbf24fd5daa88060869e51ed49f68b7ac8708 [diff] |
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>