powerpc: Fix corruption error in rh_alloc_fixed()

There is an error in rh_alloc_fixed() of the Remote Heap code:
If there is at least one free block blk won't be NULL at the end of the
search loop, so -ENOMEM won't be returned and the else branch of
"if (bs == s || be == e)" will be taken, corrupting the management
structures.

Signed-off-by: Guillaume Knispel <gknispel@proformatique.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

authored by

Guillaume Knispel and committed by
Kumar Gala
af4d3643 28707af0

+1
+1
arch/powerpc/lib/rheap.c
··· 556 556 be = blk->start + blk->size; 557 557 if (s >= bs && e <= be) 558 558 break; 559 + blk = NULL; 559 560 } 560 561 561 562 if (blk == NULL)