summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJocelyn Falempe <jfalempe@redhat.com>2024-07-19 17:24:13 +0200
committerJocelyn Falempe <jfalempe@redhat.com>2024-07-22 17:56:22 +0200
commit1f7ce4316d8c8ca8fdf5e477fee91012420b1fa3 (patch)
tree2b1f96014cc410cf93a56bae777c9350bf7f141d /drivers/mtd
parent1c1ed27ee117da726657c10d6614995eeae33b68 (diff)
downloadlwn-1f7ce4316d8c8ca8fdf5e477fee91012420b1fa3.tar.gz
lwn-1f7ce4316d8c8ca8fdf5e477fee91012420b1fa3.zip
mtd: mtdoops: Fix kmsgdump parameter renaming.
When the kmsg_dumper callback parameter changed, the reason variable in mtdoops_do_dump() was not updated accordingly. This breaks the build with mtdoops. Fixes: e1a261ba599e ("printk: Add a short description string to kmsg_dump()") Suggested-by: Knop Ryszard <ryszard.knop@intel.com> Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com> Acked-by: Richard Weinberger <richard@nod.at> Link: https://patchwork.freedesktop.org/patch/msgid/20240719152542.1554440-1-jfalempe@redhat.com
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/mtdoops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c
index 86d49db9196d..7bf3777e1f13 100644
--- a/drivers/mtd/mtdoops.c
+++ b/drivers/mtd/mtdoops.c
@@ -305,7 +305,7 @@ static void mtdoops_do_dump(struct kmsg_dumper *dumper,
struct kmsg_dump_iter iter;
/* Only dump oopses if dump_oops is set */
- if (reason == KMSG_DUMP_OOPS && !dump_oops)
+ if (detail->reason == KMSG_DUMP_OOPS && !dump_oops)
return;
kmsg_dump_rewind(&iter);
@@ -317,7 +317,7 @@ static void mtdoops_do_dump(struct kmsg_dumper *dumper,
record_size - sizeof(struct mtdoops_hdr), NULL);
clear_bit(0, &cxt->oops_buf_busy);
- if (reason != KMSG_DUMP_OOPS) {
+ if (detail->reason != KMSG_DUMP_OOPS) {
/* Panics must be written immediately */
mtdoops_write(cxt, 1);
} else {