Skip to content
Snippets Groups Projects
Commit 9d045682 authored by York Sun's avatar York Sun
Browse files

powerpc/mpc85xx: Check return value of find_tlb_idx


find_tlb_idx() is called in board_early_init_r() on multiple boards.
The return value is not checked before being used to disable a TLB.
In normal case the return value wouldn't be -1. In case of a mis-
configuration during porting to a new board, checking the return value
may be helpful to reveal some user errors.

Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
parent 8340e7ac
No related branches found
No related tags found
No related merge requests found
Showing
with 180 additions and 61 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment