numam-dpdk/drivers/common/dpaax
Gagandeep Singh c5e6bc12a3 common/dpaax: fix physical address conversion
If some of the VA entries of table are somehow not populated and are
NULL, it can add offset to NULL and return the invalid VA in PA to
VA conversion.

In this patch, adding a check if the VA entry has valid address only
then add offset and return VA.

Fixes: 2f3d633aa5 ("common/dpaax: add library for PA/VA translation table")
Cc: stable@dpdk.org

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
2021-10-07 14:47:35 +02:00
..
caamflib common/dpaax/caamflib: fix IV for short MAC-I in SNOW3G 2021-09-08 12:10:43 +02:00
caamflib.c drivers/crypto: fix build with -fno-common 2020-05-15 19:43:17 +02:00
compat.h bus/dpaa: fix build with musl 2021-03-23 08:41:05 +01:00
dpaa_list.h common/dpaax: move OF library from DPAA bus 2019-10-23 16:43:08 +02:00
dpaa_of.c common/dpaax: move OF library from DPAA bus 2019-10-23 16:43:08 +02:00
dpaa_of.h common/dpaax: mark internal symbols 2020-05-19 15:49:53 +02:00
dpaax_iova_table.c log: register with standardized names 2021-05-11 15:17:55 +02:00
dpaax_iova_table.h common/dpaax: fix physical address conversion 2021-10-07 14:47:35 +02:00
dpaax_logs.h common/dpaax: move OF library from DPAA bus 2019-10-23 16:43:08 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00