diff options
author | 2017-01-09 15:20:31 -0500 | |
---|---|---|
committer | 2017-01-10 13:30:50 -0700 | |
commit | 25b4acfc7de0fc4da3bfea3a316f7282c6fbde81 (patch) | |
tree | 2a499c0910f948316a23003cacc43a29619299a5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | virtio_blk: avoid DMA to stack for the sense buffer (diff) | |
download | linux-dev-25b4acfc7de0fc4da3bfea3a316f7282c6fbde81.tar.xz linux-dev-25b4acfc7de0fc4da3bfea3a316f7282c6fbde81.zip |
nbd: blk_mq_init_queue returns an error code on failure, not NULL
Additionally, don't assign directly to disk->queue, otherwise
blk_put_queue (called via put_disk) will choke (panic) on the errno
stored there.
Bug found by code inspection after Omar found a similar issue in
virtio_blk. Compile-tested only.
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions