diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-02-12 22:03:07 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-03-15 17:25:05 +0100 |
commit | c585da9f5f6186739f0b123b8a5b6353e425f51b (patch) | |
tree | b264d83d56b70e66a28f74ce83f1c4d18fc76813 /drivers/mtd/ftl.c | |
parent | f0a37a8db81ea9c7034e0fff4a430b221019fc50 (diff) | |
download | linux-c585da9f5f6186739f0b123b8a5b6353e425f51b.tar.bz2 |
mtd: Initialize ->fail_addr early in mtd_erase()
mtd_erase() can return an error before ->fail_addr is initialized to
MTD_FAIL_ADDR_UNKNOWN. Move this initialization at the very beginning
of the function.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ftl.c')
0 files changed, 0 insertions, 0 deletions