common/dpaax: fix uninitialized PA-VA table case
authorShreyansh Jain <shreyansh.jain@nxp.com>
Wed, 17 Oct 2018 09:05:57 +0000 (09:05 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Oct 2018 22:51:05 +0000 (00:51 +0200)
commit29ba8d9436fdc284eb4418f95f045a2aea45317a
treeaa3d591927a08320cdee0103b2b416cd140dab18
parentfa443893bc65aa709f969b365ba8dca948afa774
common/dpaax: fix uninitialized PA-VA table case

There is a possibility that either because of missing device tree entry
or lack of memory, the PA-VA table might not be available. But, the
table being transparent, the callers don't necessary check for its
initialization state. This is explicitly done during update and
translation call.

Fixes: 2f3d633aa593 ("common/dpaax: add library for PA/VA translation table")

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/common/dpaax/dpaax_iova_table.c
drivers/common/dpaax/dpaax_iova_table.h