diff options
author | Yu-cheng Yu <yu-cheng.yu@intel.com> | 2016-07-11 09:18:55 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-07-11 16:44:00 +0200 |
commit | 5060b91513b866f774da15dfd82157864c4b1683 (patch) | |
tree | 5061323ca9914d84f70cb6fdc92f54fbbcff89fc /net/core/stream.c | |
parent | 1fc2b67b43d5001b92b3a002b988884ad0137e99 (diff) |
x86/fpu/xstate: Return NULL for disabled xstate component address
It is an error to request a disabled XSAVE/XSAVES component address.
For that case, make __raw_xsave_addr() return a NULL and issue a
warning.
Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Hansen <dave.hansen@intel.com>
Cc: H. Peter Anvin <h.peter.anvin@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi V Shankar <ravi.v.shankar@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1468253937-40008-3-git-send-email-fenghua.yu@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/core/stream.c')
0 files changed, 0 insertions, 0 deletions