diff options
| author | Mark Brown <broonie@kernel.org> | 2026-08-21 13:57:18 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-08-21 13:57:18 +0100 |
| commit | b2be208e83669bb61ba17c3bab1c2e09d12b6c2f (patch) | |
| tree | eb801587a5639eecd0571442956199b126f586e3 /drivers/mtd/mtdpart.c | |
| parent | 9d9fa156c4bf956c21efc77ef9f206774cd524be (diff) | |
| parent | 94d32f1ace8ee3ef3537ac6c8e71b76a418a4762 (diff) | |
| download | linux-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.c | 3 |
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) |
