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.3-rc4~34^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=786f528119722f564a22ad953411374e06116333;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed