From: Ben Hutchings Date: Thu, 14 Nov 2013 00:41:38 +0000 (+0000) Subject: e1000e: Validate hwtstamp_config completely before applying it X-Git-Tag: v3.13-rc1~33^2~44^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62d7e3a2d00675970bc7afccc2e407e1df8f1d0f;p=pandora-kernel.git e1000e: Validate hwtstamp_config completely before applying it e1000e_hwtstamp_ioctl() should validate all fields of hwtstamp_config before making any changes. Currently it copies the configuration to the e1000_adapter structure before validating it at all. Change e1000e_config_hwtstamp() to take a pointer to the hwstamp_config and to copy the config after validating it. Compile-tested only. Signed-off-by: Ben Hutchings Acked-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed