aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/user_sdma.c
diff options
context:
space:
mode:
authorMitko Haralanov <mitko.haralanov@intel.com>2016-04-12 10:46:35 -0700
committerDoug Ledford <dledford@redhat.com>2016-04-28 16:32:26 -0400
commit782f6697d20d180843565ac93726f5ec6c7ec8ce (patch)
treefdb34256820e83a1a21994a628f74c198520c811 /drivers/staging/rdma/hfi1/user_sdma.c
parentIB/hfi1: Fix memory leak in user ExpRcv and SDMA (diff)
downloadlinux-dev-782f6697d20d180843565ac93726f5ec6c7ec8ce.tar.xz
linux-dev-782f6697d20d180843565ac93726f5ec6c7ec8ce.zip
IB/hfi1: Protect the interval RB tree when cleaning up
The current implementation of the clean up function for the interval RB trees has two flaws which may cause problems in cases of concurrent executing of the function and MMU notifier. The flaws were due to the fact that deregistration of the MMU callbacks was done after the tree was emptied and, furthermore, the tree was not being locked. This commit fixes both of these flaws by, first, switch the order of operations, and, second, locking the tree while traversing it to prevent any other operations. Reviewed-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions