]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/ubi/block.c
block: introduce new block status code type
[karo-tx-linux.git] / drivers / mtd / ubi / block.c
index 5497e65439df6458cc02d1e6cef0b42c581a7add..3ecdb39d1985ae14c55b4c4b3ebefa30bd3c9698 100644 (file)
@@ -313,7 +313,7 @@ static void ubiblock_do_work(struct work_struct *work)
        ret = ubiblock_read(pdu);
        rq_flush_dcache_pages(req);
 
-       blk_mq_end_request(req, ret);
+       blk_mq_end_request(req, errno_to_blk_status(ret));
 }
 
 static int ubiblock_queue_rq(struct blk_mq_hw_ctx *hctx,