[PATCH v2] MIPS: memset.S: Fix return of __clear_user from Lpartial_fixup

2018-04-17 Thread Matt Redfearn
The __clear_user function is defined to return the number of bytes that could not be cleared. From the underlying memset / bzero implementation this means setting register a2 to that number on return. Currently if a page fault is triggered within the memset_partial block, the value loaded into a2

[PATCH v2] MIPS: memset.S: Fix return of __clear_user from Lpartial_fixup

2018-04-17 Thread Matt Redfearn
The __clear_user function is defined to return the number of bytes that could not be cleared. From the underlying memset / bzero implementation this means setting register a2 to that number on return. Currently if a page fault is triggered within the memset_partial block, the value loaded into a2