summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtdpart.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-08-21 13:57:18 +0100
committerMark Brown <broonie@kernel.org>2026-08-21 13:57:18 +0100
commitb2be208e83669bb61ba17c3bab1c2e09d12b6c2f (patch)
treeeb801587a5639eecd0571442956199b126f586e3 /drivers/mtd/mtdpart.c
parent9d9fa156c4bf956c21efc77ef9f206774cd524be (diff)
parent94d32f1ace8ee3ef3537ac6c8e71b76a418a4762 (diff)
downloadlinux-next-b2be208e83669bb61ba17c3bab1c2e09d12b6c2f.tar.gz
linux-next-b2be208e83669bb61ba17c3bab1c2e09d12b6c2f.zip
Merge branch 'mtd/next' of https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r--drivers/mtd/mtdpart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 4b41550fd374..ddded0dbe77e 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -258,7 +258,8 @@ int mtd_add_partition(struct mtd_info *parent, const char *name,
/* the direct offset is expected */
if (offset == MTDPART_OFS_APPEND ||
- offset == MTDPART_OFS_NXTBLK)
+ offset == MTDPART_OFS_NXTBLK ||
+ offset == MTDPART_OFS_RETAIN)
return -EINVAL;
if (length == MTDPART_SIZ_FULL)