Skip to content

Commit

Permalink
Merge tag 'for-linus-20170812' of git://git.infradead.org/linux-mtd
Browse files Browse the repository at this point in the history
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
  • Loading branch information
torvalds committed Aug 12, 2017
2 parents a99bcdc + 9a51544 commit 89a5527
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/mtd_blkdevs.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ static blk_status_t do_blktrans_request(struct mtd_blktrans_ops *tr,
for (; nsect > 0; nsect--, block++, buf += tr->blksize)
if (tr->writesect(dev, block, buf))
return BLK_STS_IOERR;
return BLK_STS_OK;
default:
return BLK_STS_IOERR;
}
Expand Down

0 comments on commit 89a5527

Please sign in to comment.