Files
android_kernel_xiaomi_sm8450/drivers/infiniband/core
zhengbin a7bfb93f02 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: 045959db65 ("IB/cma: Add configfs for rdma_cm")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Link: https://lore.kernel.org/r/1566188859-103051-1-git-send-email-zhengbin13@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
2019-08-20 13:44:45 -04:00
..
2015-06-12 14:49:18 -04:00
2018-12-12 07:40:16 -07:00
2019-05-03 10:56:56 -03:00
2018-12-12 07:40:16 -07:00
2016-03-03 10:20:25 -05:00
2019-04-25 12:27:11 -03:00
2018-12-12 07:40:16 -07:00
2016-03-03 10:20:25 -05:00
2019-04-25 12:27:11 -03:00