]> git.droids-corp.org - dpdk.git/commit
net/dpaa2: fix null pointer dereference
authorWeiguo Li <liwg06@foxmail.com>
Tue, 25 Jan 2022 14:23:48 +0000 (22:23 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jan 2022 15:10:52 +0000 (16:10 +0100)
commit29e5519dab554407f9d375abb40fdb57f8d445db
treeca6d1ceae4c29dfc25de3ea6939315ee9683d94e
parenta5f42986968a0699e070c56f1033aee5f90d2c12
net/dpaa2: fix null pointer dereference

Check for memory allocation failure is added to avoid null
pointer dereference.

Fixes: 4690a6114ff6 ("net/dpaa2: enable error queues optionally")
Cc: stable@dpdk.org
Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/dpaa2/dpaa2_ethdev.c