diff options
author | zhengbin <[email protected]> | 2019-08-19 12:27:39 +0800 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2019-08-20 13:44:45 -0400 |
commit | a7bfb93f0211b4a2f1ffeeb259ed6206bac30460 (patch) | |
tree | b5a930880d54241b3e4a05bef6bb5f4f17d43b36 /drivers/gpu/drm/lima/lima_sched.c | |
parent | 841b07f99a4766d66f50d8a2ab941bce94cd4e70 (diff) |
RDMA/cma: fix null-ptr-deref Read in cma_cleanup
In cma_init, if cma_configfs_init fails, need to free the
previously memory and return fail, otherwise will trigger
null-ptr-deref Read in cma_cleanup.
cma_cleanup
cma_configfs_exit
configfs_unregister_subsystem
Fixes: 045959db65c6 ("IB/cma: Add configfs for rdma_cm")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: zhengbin <[email protected]>
Reviewed-by: Parav Pandit <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.c')
0 files changed, 0 insertions, 0 deletions