event/dlb: fix bug accessing unitialized variable
PATCH 1/1 event/dlb: fix bug accessing unitialized variable
Fixes eb14a3421afd ("event/dlb: add eventdev start")
Coverity issue: 366205
Signed-off-by Timothy McDaniel <[email protected]>
--- drivers/event/dlb/dlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/event/dlb/dlb.c +1 -1
@@ -1847,7 +1847,7 @@ static int dlb_num_dir_queues_setup(struct dlb_eventdev *dlb) {struct dlb_hw_dev *handle = &dlb->qm_instance;struct dlb_create_dir_queue_args cfg; -struct dlb_cmd_response response; +struct dlb_cmd_response response = {0 };int32_t ret; cfg.response = (uintptr_t )&response;
Signature · 1 line
1.7.10
Quoted 1 line · Timothy McDaniel
Please add a comment and also squash the similar patches.
Quoted 24 lines
Fixes eb14a3421afd ("event/dlb: add eventdev start")Coverity issue: 366205
Signed-off-by Timothy McDaniel <[email protected]>--- drivers/event/dlb/dlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/event/dlb/dlb.c +1
-2@@ -1847,7 +1847,7 @@ static int dlb_num_dir_queues_setup(struct dlb_eventdev *dlb) {struct dlb_hw_dev *handle = &dlb->qm_instance;struct dlb_create_dir_queue_args cfg; -struct dlb_cmd_response response; +struct dlb_cmd_response response = {0 };int32_t ret; cfg.response = (uintptr_t )&response; --1.7.10