[dpdk-dev] [PATCH v2] mbuf: Fix illegal pointer access to mempool members

2021-03-30 Thread wenwux . ma
From: wenwu ma Before accessing the private data of mempool in function rte_pktmbuf_priv_size() and rte_pktmbuf_data_room_size(), it is necessary to determine whether the private data exists, otherwise it will cause null pointer access. Signed-off-by: wenwu ma --- V2: - Change the unequal sign

[dpdk-dev] [PATCH] mbuf: Fix illegal pointer access to mempool members

2021-03-29 Thread wenwux . ma
From: wenwu ma Before accessing the private data of mempool in function rte_pktmbuf_priv_size() and rte_pktmbuf_data_room_size(), it is necessary to determine whether the private data exists, otherwise it will cause null pointer access. Signed-off-by: wenwu ma --- lib/librte_mbuf/rte_mbuf.h |