diff options
author | Christoph Hellwig <hch@lst.de> | 2017-10-18 13:20:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-20 10:07:31 +0100 |
commit | 6a559523ee6626d191be1da9031845c368e4a6a9 (patch) | |
tree | e110d0390c392acd3292edefc4be7c2bd863b108 /net/l2tp | |
parent | e2fce5a5578d175cd61822473228ab454782bec7 (diff) |
nvme: use kref_get_unless_zero in nvme_find_get_ns
[ Upstream commit 2dd4122854f697afc777582d18548dded03ce5dd ]
For kref_get_unless_zero to protect against lookup vs free races we need
to use it in all places where we aren't guaranteed to already hold a
reference. There is no such guarantee in nvme_find_get_ns, so switch to
kref_get_unless_zero in this function.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/l2tp')
0 files changed, 0 insertions, 0 deletions