Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/bnxt: fix null dereference in session cleanup
[ upstream commit a2dfcd1 ] In tf_session_create(), there is a case that with 'tfp->session' still be NULL and run 'goto cleanup', which will leads to a null dereference by 'tfp_free(tfp->session->core_data)' in the cleanup. Fixes: a46bbb5 ("net/bnxt: update multi device design") Signed-off-by: Weiguo Li <liwg06@foxmail.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
- Loading branch information