]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: handle error case in cpm_muram_alloc()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 21 Aug 2015 16:48:31 +0000 (18:48 +0200)
committerScott Wood <scottwood@freescale.com>
Tue, 27 Oct 2015 23:13:31 +0000 (18:13 -0500)
commit9d28cc811bbb43c7ca8dc8be375bab1e0efb037b
tree9cb238845d4856dec34f312209a1a802343a73c6
parent9100d20c5b6307bacd8756aba2f157cb1a8ffb56
powerpc: handle error case in cpm_muram_alloc()

rh_alloc() returns (unsigned long)-ERRxx on error, which may
result in overwriting memory outside the MURAM AREA.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/cpm_common.c