mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-02 17:50:20 +00:00
alpha: Fix generic brk system call emulation in __brk_call (bug 29490)
The kernel special-cases the zero argument for alpha brk, and we can use that to restore the generic Linux error handling behavior. Fixes commitb57ab258c1
("Linux: Introduce __brk_call for invoking the brk system call"). (cherry picked from commite7ad26ee3c
)
This commit is contained in:
parent
4bc889c01c
commit
1fcc7bfee2
1
NEWS
1
NEWS
@ -113,6 +113,7 @@ The following bugs are resolved with this release:
|
||||
[29213] libc: gconv_parseconfdir is not y2038 aware
|
||||
[29214] nptl: pthread_setcanceltype fails to set type
|
||||
[29446] _dlopen now ignores dl_caller argument in static mode
|
||||
[29490] alpha: New __brk_call implementation is broken
|
||||
|
||||
|
||||
Version 2.34
|
||||
|
@ -21,8 +21,7 @@ __brk_call (void *addr)
|
||||
{
|
||||
unsigned long int result = INTERNAL_SYSCALL_CALL (brk, addr);
|
||||
if (result == -ENOMEM)
|
||||
/* Mimic the default error reporting behavior. */
|
||||
return addr;
|
||||
else
|
||||
/* Mimic the generic error reporting behavior. */
|
||||
result = INTERNAL_SYSCALL_CALL (brk, 0);
|
||||
return (void *) result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user