Skip to content

Commit 89a5527

Browse files
committed
Merge tag 'for-linus-20170812' of git://git.infradead.org/linux-mtd
Pull another MTD fix from Brian Norris: "An mtdblock regression occurred in -rc1 (all writes were broken!), in the process of some block subsystem refactoring. Noticed and fixed last week, but I'm a little slow on the uptake" * tag 'for-linus-20170812' of git://git.infradead.org/linux-mtd: mtd: blkdevs: Fix mtd block write failure
2 parents a99bcdc + 9a51544 commit 89a5527

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mtd/mtd_blkdevs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ static blk_status_t do_blktrans_request(struct mtd_blktrans_ops *tr,
113113
for (; nsect > 0; nsect--, block++, buf += tr->blksize)
114114
if (tr->writesect(dev, block, buf))
115115
return BLK_STS_IOERR;
116+
return BLK_STS_OK;
116117
default:
117118
return BLK_STS_IOERR;
118119
}

0 commit comments

Comments
 (0)