Skip to content

Commit

Permalink
bus/dpaa: fix freeing in FMAN interface destructor
Browse files Browse the repository at this point in the history
[ upstream commit 5ddcf3d ]

if was allocated with rte_malloc, free shall be equivalent.

Fixes: 4762b3d ("bus/dpaa: delay fman device list to bus probe")

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
  • Loading branch information
hemantagr authored and cpaelzer committed Aug 10, 2021
1 parent 989c488 commit 782d2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bus/dpaa/base/fman/fman.c
Expand Up @@ -50,7 +50,7 @@ if_destructor(struct __fman_if *__if)
free(bp);
}
cleanup:
free(__if);
rte_free(__if);
}

static int
Expand Down

0 comments on commit 782d2bf

Please sign in to comment.