summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2018-05-16 14:51:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-26 07:54:01 +0800
commit481684cacb2cc00cbdb35d52edb4aa5d5e3bec39 (patch)
treeabc7f1b9e55e1c34fa8933c181f1cc0508efd85c /tools/perf/scripts/python
parent335136d2e26e9d09a73c9bad315f9075a7a8557f (diff)
nbd: fix nbd device deletion
commit 8364da4751cf22201d74933d5e634176f44ed407 upstream. This fixes a use after free bug, we shouldn't be doing disk->queue right after we do del_gendisk(disk). Save the queue and do the cleanup after the del_gendisk. Fixes: c6a4759ea0c9 ("nbd: add device refcounting") cc: stable@vger.kernel.org Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions