common/dpaax: fix possible null pointer access
This patch fixes possible null pointer access when dump iova table.
Fixes: 2f3d633aa5
("common/dpaax: add library for PA/VA translation table")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
This commit is contained in:
parent
3a91d2d138
commit
611c394c18
@ -366,8 +366,10 @@ dpaax_iova_table_dump(void)
|
||||
}
|
||||
|
||||
DPAAX_DEBUG(" === Start of PA->VA Translation Table ===");
|
||||
if (dpaax_iova_table_p == NULL)
|
||||
if (dpaax_iova_table_p == NULL) {
|
||||
DPAAX_DEBUG("\tNULL");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = dpaax_iova_table_p->entries;
|
||||
for (i = 0; i < dpaax_iova_table_p->count; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user