mtd: mtdoops: Fix the size of the header read buffer.
authorJean-Marc Eurin <jmeurin@google.com>
Thu, 21 Apr 2022 23:42:42 +0000 (16:42 -0700)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 26 Apr 2022 07:27:05 +0000 (09:27 +0200)
commitfbb83e546ea4543ab0c59dcbfc5a5a1471ea1806
treec1f1dea1100e43c817ba3d8a5dd3534f82c914e8
parent96a3295c351da82d7af99b2fc004a3cf9f4716a9
mtd: mtdoops: Fix the size of the header read buffer.

The read buffer size depends on the MTDOOPS_HEADER_SIZE.

Tested: Changed the header size, it doesn't panic, header is still
read/written correctly.

Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220421234244.2172003-2-jmeurin@google.com
drivers/mtd/mtdoops.c