From: Peter Zijlstra Date: Wed, 23 Apr 2014 10:22:54 +0000 (+0200) Subject: perf: Fix perf_event_open(.flags) test X-Git-Tag: omap-for-v3.16/fixes-against-rc1~34^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=643fd0b9f5dc40fedbfbb908ebe6f1169284f7d8;p=pandora-kernel.git 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 Cc: Thomas Gleixner Reported-by: Vince Weaver Tested-by: Vince Weaver Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20140423102254.GL11096@twins.programming.kicks-ass.net Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed