diff options
author | Anton Ivanov <anton.ivanov@cambridgegreys.com> | 2019-02-26 18:55:25 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2019-03-07 00:39:18 +0300 |
commit | aea05eb56e47046de1e5b508d40931dca969f1e5 (patch) | |
tree | 198e7e45ab8ae97a1a6df74279e8c41133a39a29 /fs/proc_namespace.c | |
parent | df20af1e270bb6e024d9d009516b1da864d58632 (diff) | |
download | linux-aea05eb56e47046de1e5b508d40931dca969f1e5.tar.xz |
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>
Diffstat (limited to 'fs/proc_namespace.c')
0 files changed, 0 insertions, 0 deletions