From: Ben Hutchings Date: Wed, 1 Feb 2012 09:32:25 +0000 (+0000) Subject: ethtool: Null-terminate filename passed to ethtool_ops::flash_device X-Git-Tag: v3.2.19~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=077ae2b73b4c110e9d458b071a61c9f2b33ee58e;p=pandora-kernel.git ethtool: Null-terminate filename passed to ethtool_ops::flash_device commit 786f528119722f564a22ad953411374e06116333 upstream. 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 Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed