]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
um: Fix for a possible OOPS in ubd initialization
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Tue, 26 Feb 2019 15:55:25 +0000 (15:55 +0000)
committerRichard Weinberger <richard@nod.at>
Wed, 6 Mar 2019 21:39:18 +0000 (22:39 +0100)
commitaea05eb56e47046de1e5b508d40931dca969f1e5
tree198e7e45ab8ae97a1a6df74279e8c41133a39a29
parentdf20af1e270bb6e024d9d009516b1da864d58632
um: Fix for a possible OOPS in ubd initialization

If the ubd device failed to allocate a queue during
initialization it tried call blk_cleanup_queue resulting
in an oops.

This patch simplifies the cleanup logic and ensures that
blk_queue_cleanup is called only if there is a valid queue.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/ubd_kern.c