event/octeontx2: fix null dereference
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Wed, 24 Jul 2019 12:06:34 +0000 (17:36 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Jul 2019 20:17:29 +0000 (22:17 +0200)
commitef9f8bb6d52c1ee324e14c3a6cc7167386ac6252
treec1c803feff24f153cd4faea8df886639dc84f5b4
parent5a93e173b874e549f0adac9796f7284837a98566
event/octeontx2: fix null dereference

Fix NULL dereference after rte_realloc and add extra NULL checks.
Fix few memory leak with kvargs.

Coverity issue: 345023, 345022, 345009, 345011, 345026, 344997, 344990
Fixes: ffa4ec0b6063 ("event/octeontx2: allow adapters to resize inflight buffers")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
drivers/event/octeontx2/otx2_evdev.c
drivers/event/octeontx2/otx2_evdev_adptr.c
drivers/event/octeontx2/otx2_tim_evdev.c