Skip to content
Commit 7055e6fa authored by Nishanth Menon's avatar Nishanth Menon
Browse files

xlat lib: Don't set mmap_attr_t enum to be -1



-1 is not a defined mmap_attr_t type. Instead of using invalid enum
types, we can either choose to define a INVALID type OR handle the
condition specifically.

Since the usage of mmap_region_attr is limited, it is easier to just
handle the error condition specifically and return 0 or -1 depending
on success or fail.

Fixes: ARM-Software/tf-issues#473
Fixes: 28fa2e9e ("xlat lib: Use mmap_attr_t type consistently")

Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent dd454b40
Loading
Loading
Loading
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