OSDN Git Service

linux-user: Do not call get_errno() in do_brk()
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Wed, 2 Aug 2023 07:17:49 +0000 (16:17 +0900)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 6 Aug 2023 23:39:00 +0000 (16:39 -0700)
commitc6cc059eca18d9f6e4e26bb8b6d1135ddb35d81a
treeca16a2f002a7bf95bc1a03196abdeb9f03131163
parentddcdd8c48fc48b2d528756fc98f1ce0ec3d7b617
linux-user: Do not call get_errno() in do_brk()

Later the returned value is compared with -1, and negated errno is not
expected.

Fixes: 00faf08c95 ("linux-user: Don't use MAP_FIXED in do_brk()")
Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20230802071754.14876-4-akihiko.odaki@daynix.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/syscall.c