From: Dave Hansen Date: Sun, 7 Jun 2015 18:37:04 +0000 (-0700) Subject: x86/mpx: Add temporary variable to reduce masking X-Git-Tag: omap-for-v4.3/legacy-v2-signed~203^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1149fc83a1f97612e72ec24a0bdbabff7b85e77;p=pandora-kernel.git x86/mpx: Add temporary variable to reduce masking When we allocate a bounds table, we call mmap(), then add a "valid" bit to the value before storing it in to the bounds directory. If we fail along the way, we go and mask that valid bit _back_ out. That seems a little silly, and this makes it much more clear when we have a plain address versus an actual table _entry_. Signed-off-by: Dave Hansen Reviewed-by: Thomas Gleixner Cc: Andrew Morton Cc: Dave Hansen Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20150607183704.3D69D5F4@viggo.jf.intel.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed