diff options
author | Davide Libenzi <[email protected]> | 2009-02-18 14:48:18 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-02-18 15:37:53 -0800 |
commit | 610d18f4128ebbd88845d0fc60cce67b49af881e (patch) | |
tree | 97faea373227afc42c4a8f932fb2fe3fd393a258 /net/lapb/lapb_timer.c | |
parent | ef35ce231b3cb2a4b1808e826da263bf37ccb38a (diff) |
timerfd: add flags check
As requested by Michael, add a missing check for valid flags in
timerfd_settime(), and make it return EINVAL in case some extra bits are
set.
Michael said:
If this is to be any use to userland apps that want to check flag
support (perhaps it is too late already), then the sooner we get it
into the kernel the better: 2.6.29 would be good; earlier stables as
well would be even better.
[[email protected]: remove unused TFD_FLAGS_SET]
Acked-by: Michael Kerrisk <[email protected]>
Signed-off-by: Davide Libenzi <[email protected]>
Cc: <[email protected]> [2.6.27.x, 2.6.28.x]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions