mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
commitea5ec76d76upstream. If the permission check fails, we drop a reference to the blkif without having taken it in the first place. The bug was introduced in commit604c499cbb(xen/blkback: Check device permissions before allowing OP_DISCARD). Cc: Jan Beulich <JBeulich@suse.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>