diff options
author | Peter Zijlstra <[email protected]> | 2014-04-23 12:22:54 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2014-05-19 21:52:59 +0900 |
commit | 643fd0b9f5dc40fedbfbb908ebe6f1169284f7d8 (patch) | |
tree | 95fd3369f0110536c8365e086f7254f4e92d69ec /kernel/workqueue.c | |
parent | 12665b35b0b48c9583ee1b8f0a403dc708fb4a92 (diff) |
perf: Fix perf_event_open(.flags) test
Vince noticed that we test the (unsigned long) flags field against an
(unsigned int) constant. This would allow setting the high bits on 64bit
platforms and not get an error.
There is nothing that uses the high bits, so it should be entirely
harmless, but we don't want userspace to accidentally set them anyway,
so fix the constants.
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Reported-by: Vince Weaver <[email protected]>
Tested-by: Vince Weaver <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions