net: validate HWTSTAMP ioctl parameters
commit4dc360c5e7e155373bffbb3c1f7ea0022dee650c
authorRichard Cochran <richard.cochran@omicron.at>
Wed, 19 Oct 2011 21:00:35 +0000 (19 17:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 21:00:35 +0000 (19 17:00 -0400)
tree626d89398ae24a6995acb1b179d8cbed39199263
parent850a545bd8a41648445bfc5541afe36ca105b0b8
net: validate HWTSTAMP ioctl parameters

This patch adds a sanity check on the values provided by user space for
the hardware time stamping configuration. If the values lie outside of
the absolute limits, then the ioctl request will be denied.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net_tstamp.h
net/core/dev.c