]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[MIPS] IRIX: Handle do_brk() error return correctly.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 16 Apr 2008 18:55:26 +0000 (19:55 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 12 May 2008 15:46:51 +0000 (16:46 +0100)
commitf4324f3eeb311d1889b8c25076f2669012323842
tree4db25b6221447a64673e35fee2c97d31902f3118
parent1928cc84a0a937ce7042d9235996ab380f36f18a
[MIPS] IRIX: Handle do_brk() error return correctly.

do_brk's return value was stored in an unsigned long variable before being
tested for less than zero making the test always fail.  Also do_brk's
called irix_map_prda_page wasn't forwarding do_brk() success.

Bug checking the return value of do_brk() and initial fix for it found
by Roel Kluin <12o3l@tiscali.nl>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/irixelf.c