aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorGaosheng Cui <[email protected]>2022-11-17 11:59:14 +0800
committerGreg Kroah-Hartman <[email protected]>2022-11-22 13:20:13 +0100
commit357057ee55d3c99a5de5abe8150f7bca04f8e53b (patch)
tree42fa68c6a7c3b71dd8d051aed217d4b4eb8ae152 /lib/mpi/mpi-sub-ui.c
parentccdbe14b77a5e39496baf632e157f9daf322dd27 (diff)
staging: vme_user: Fix possible UAF in tsi148_dma_list_add
Smatch report warning as follows: drivers/staging/vme_user/vme_tsi148.c:1757 tsi148_dma_list_add() warn: '&entry->list' not removed from list In tsi148_dma_list_add(), the error path "goto err_dma" will not remove entry->list from list->entries, but entry will be freed, then list traversal may cause UAF. Fix by removeing it from list->entries before free(). Fixes: b2383c90a9d6 ("vme: tsi148: fix first DMA item mapping") Signed-off-by: Gaosheng Cui <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions