]> git.baikalelectronics.ru Git - kernel.git/commit
x86, fpu: check __clear_user() return value
authorIngo Molnar <mingo@elte.hu>
Mon, 18 Aug 2008 10:59:32 +0000 (12:59 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 12 Oct 2008 13:17:39 +0000 (15:17 +0200)
commit77de9eadbcb5878adfb067c0f212e53d68294a51
tree0050a865ffc49e71e9787ad1012d39a4c3c5d8b4
parentea5cf3b7e259851271e727ed301779b14fdff9d9
x86, fpu: check __clear_user() return value

fix warning:

  arch/x86/kernel/xsave.c: In function ‘save_i387_xstate’:
  arch/x86/kernel/xsave.c:98: warning: ignoring return value of ‘__clear_user’, declared with attribute warn_unused_result

check the return value and act on it. We should not be ignoring faults
at this point.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/xsave.c