Skip to content

Commit

Permalink
event/cnxk: verify strdup return
Browse files Browse the repository at this point in the history
[ upstream commit b4b3a7037b2cab4dc5d004ed0fb9ec1e5911334e ]

Add verify strdup return value logic.

Fixes: 38c2e32 ("event/cnxk: add option to control SSO HWGRP QoS")

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
  • Loading branch information
fengchengwen authored and kevintraynor committed Mar 5, 2024
1 parent 93cc8c4 commit bb7030a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/event/cnxk/cnxk_eventdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ parse_qos_list(const char *value, void *opaque)
char *end = NULL;
char *f = s;

if (s == NULL)
return;

while (*s) {
if (*s == '[')
start = s;
Expand Down

0 comments on commit bb7030a

Please sign in to comment.