Merge branch 'x86/auditsyscall' of git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-roland

* 'x86/auditsyscall' of git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-roland:
  x86: auditsyscall: fix fastpath return value after reschedule
This commit is contained in:
Linus Torvalds 2010-07-22 11:45:02 -07:00
Родитель e916beab22 0327559151
Коммит 2851785deb
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -571,8 +571,8 @@ auditsys:
* masked off. * masked off.
*/ */
sysret_audit: sysret_audit:
movq %rax,%rsi /* second arg, syscall return value */ movq RAX-ARGOFFSET(%rsp),%rsi /* second arg, syscall return value */
cmpq $0,%rax /* is it < 0? */ cmpq $0,%rsi /* is it < 0? */
setl %al /* 1 if so, 0 if not */ setl %al /* 1 if so, 0 if not */
movzbl %al,%edi /* zero-extend that into %edi */ movzbl %al,%edi /* zero-extend that into %edi */
inc %edi /* first arg, 0->1(AUDITSC_SUCCESS), 1->2(AUDITSC_FAILURE) */ inc %edi /* first arg, 0->1(AUDITSC_SUCCESS), 1->2(AUDITSC_FAILURE) */