]> git.baikalelectronics.ru Git - kernel.git/commit
ixp4xx_eth: Validate hwtstamp_config completely before applying it
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 14 Nov 2013 00:48:56 +0000 (00:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 21:22:10 +0000 (16:22 -0500)
commit6d4a0690b8ac5103fea7b02c40d456d5c0b9ffd5
treea9d5b9f6d2597b1fabf95853e70de55e568b435f
parent2d13506fd5c70d3d9be0ef20fd9870fd47f79d01
ixp4xx_eth: Validate hwtstamp_config completely before applying it

hwtstamp_ioctl() should validate all fields of hwtstamp_config
before making any changes.  Currently it sets the TX configuration
before validating the rx_filter field.

Untested as I don't have a cross-compiler to hand.

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