diff options
| author | Josef Bacik <jbacik@fb.com> | 2018-05-16 14:51:17 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2018-05-16 12:54:06 -0600 |
| commit | 8364da4751cf22201d74933d5e634176f44ed407 (patch) | |
| tree | fe9edb04edc9d882ab8a21fc64160b809481b425 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 3de9beeeb4ffc82c9745f095a6a26e0aef492379 (diff) | |
| download | cachepc-linux-8364da4751cf22201d74933d5e634176f44ed407.tar.gz cachepc-linux-8364da4751cf22201d74933d5e634176f44ed407.zip | |
nbd: fix nbd device deletion
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>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
