]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mtd: blkdevs: Fix mtd block write failure
authorAbhishek Sahu <absahu@codeaurora.org>
Wed, 2 Aug 2017 12:33:05 +0000 (18:03 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 12 Aug 2017 21:53:24 +0000 (14:53 -0700)
commit9a51544774a57fcb94994a61860a17f9e63a8d7b
treec7bf686fa531a1752d3a5b51e9c889872adfd52b
parent33983675fbd5b2447430c3dd4c205e879576b475
mtd: blkdevs: Fix mtd block write failure

All the MTD block write requests are failing with
following error messages

    mkfs.ext4  /dev/mtdblock0

    print_req_error: I/O error, dev mtdblock0, sector 0
    Buffer I/O error on dev mtdblock0, logical block 0,
    lost async page write

The control is going to default case after block write request
because of missing return.

Fixes: commit 2a842acab109 ("block: introduce new block status code type")
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtd_blkdevs.c