]> Pileus Git - ~andy/linux/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)
commita5be8cd3875ca051db857c9d76b253a7e7ea3f22
treea9d5b9f6d2597b1fabf95853e70de55e568b435f
parent2ee91e54bd5367bf4123719a4f7203857b28e046
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