summaryrefslogtreecommitdiff
path: root/astraceroute.c
AgeCommit message (Expand)AuthorFilesLines
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+1077
='hidden' name='id2' value='f709b45ec461b548c41a00044dba1f1b572783bf'/>
context:
space:
mode:
Diffstat (limited to 'Documentation')
et-next.git/diff/?h=nds-private-remove&id=6bf6b0aa3da84a3d9126919a94c49c0fb7ee2fb3&id2=25b4acfc7de0fc4da3bfea3a316f7282c6fbde81'>diff)
virtio_blk: fix panic in initialization error path
If blk_mq_init_queue() returns an error, it gets assigned to vblk->disk->queue. Then, when we call put_disk(), we end up calling blk_put_queue() with the ERR_PTR, causing a bad dereference. Fix it by only assigning to vblk->disk->queue on success. Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat