Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0d73be5 authored by Brent Taylor's avatar Brent Taylor Committed by Greg Kroah-Hartman
Browse files

mtd: nand: Fix writing mtdoops to nand flash.



commit 30863e38ebeb500a31cecee8096fb5002677dd9b upstream.

When mtdoops calls mtd_panic_write(), it eventually calls
panic_nand_write() in nand_base.c. In order to properly wait for the
nand chip to be ready in panic_nand_wait(), the chip must first be
selected.

When using the atmel nand flash controller, a panic would occur due to
a NULL pointer exception.

Fixes: 2af7c653 ("mtd: Add panic_write for NAND flashes")
Signed-off-by: default avatarBrent Taylor <motobud@gmail.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2bbd6910
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment