aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/nvec
diff options
context:
space:
mode:
authorMitko Haralanov <mitko.haralanov@intel.com>2016-04-12 10:46:16 -0700
committerDoug Ledford <dledford@redhat.com>2016-04-28 12:00:38 -0400
commit849e3e9398608c26a7c54bf9fbf3288f7ced6bfb (patch)
tree77ebe0377b3d1a6f968fc1468b7f201fcb36e275 /drivers/staging/nvec
parentIB/hfi1: Fix deadlock caused by locking with wrong scope (diff)
downloadlinux-dev-849e3e9398608c26a7c54bf9fbf3288f7ced6bfb.tar.xz
linux-dev-849e3e9398608c26a7c54bf9fbf3288f7ced6bfb.zip
IB/hfi1: Prevent unpinning of wrong pages
The routine used by the SDMA cache to handle already cached nodes can extend an already existing node. In its error handling code, the routine will unpin pages when not all pages of the buffer extension were pinned. There was a bug in that part of the routine, which would mistakenly unpin pages from the original set rather than the newly pinned pages. This commit fixes that bug by offsetting the page array to the proper place pointing at the beginning of the newly pinned pages. 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 'drivers/staging/nvec')
0 files changed, 0 insertions, 0 deletions