diff options
author | 2019-02-16 04:15:52 -0800 | |
---|---|---|
committer | 2019-02-20 14:42:41 -0700 | |
commit | ec95e0fa21628ed25f12187fb1067b8b10ad7c9a (patch) | |
tree | 8bb2c7af451c445d3f72ec7994c91de477db4747 /net/bluetooth/hci_request.c | |
parent | RDMA/core: Verify that memory window type is legal (diff) | |
download | wireguard-linux-ec95e0fa21628ed25f12187fb1067b8b10ad7c9a.tar.xz wireguard-linux-ec95e0fa21628ed25f12187fb1067b8b10ad7c9a.zip |
drivers/IB,qib: Fix pinned/locked limit check in qib_get_user_pages()
The current check does not take into account the previous value of
pinned_vm; thus it is quite bogus as is. Fix this by checking the
new value after the (optimistic) atomic inc.
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions