Commit ce83e29f authored by Federico Vaga's avatar Federico Vaga

include/linux/zio-buffer.h: fix missing return when buffer disabled

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f94c75bb
......@@ -167,6 +167,7 @@ static inline void zio_buffer_store_block(struct zio_bi *bi, struct zio_block *b
spin_unlock_irqrestore(&bi->lock, flags);
dev_err(&bi->head.dev, "Buffer disabled, cannot store\n");
bi->b_op->free_block(bi, block);
return;
}
spin_unlock_irqrestore(&bi->lock, flags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment