]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: mtdoops: Don't write panic data twice
authorMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Thu, 3 Sep 2020 03:42:17 +0000 (15:42 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 08:55:17 +0000 (09:55 +0100)
commit593a1aa514c58d4bfbdfc9b388a8d81d5afaab17
tree9a4f9132414abaf9d32b11f17f62fa868b425641
parent5389496b702d2bb8d71fc879391a068720d69133
mtd: mtdoops: Don't write panic data twice

[ Upstream commit c1cf1d57d1492235309111ea6a900940213a9166 ]

If calling mtdoops_write, don't also schedule work to be done later.

Although this appears to not be causing an issue, possibly because the
scheduled work will never get done, it is confusing.

Fixes: 016c1291ce70 ("mtd: mtdoops: do not use mtd->panic_write directly")
Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200903034217.23079-1-mark.tomlinson@alliedtelesis.co.nz
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/mtdoops.c