Commit 1d286b1
mtd: Create gluebi mtdblocks if CONFIG_FTL is not enabled
Upstream commit
a43bdc3 ("mtd: Fix gluebi NULL pointer dereference caused by ftl notifier")
fixed a NULL pointer dereference, which can be caused by FTL notifier
accessing 'gluebi->desc' in gluebi_read, by completely preventing gluebi
from creating mtdblock devices.
This creates a problem as existing systems may expect mtdblocks emulated
on top of UBI to exist. As a workaround, this commit prevents gluebi
mtdblock device creation only if CONFIG_FTL is enabled.
Signed-off-by: HatsyRei <yan.huan.chng@emerson.com>
[gratian: reword to match commit quoting kernel standard]
Signed-off-by: Gratian Crisan <gratian.crisan@emerson.com>1 parent 76c9aec commit 1d286b1
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
| 467 | + | |
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
| |||
503 | 504 | | |
504 | 505 | | |
505 | 506 | | |
506 | | - | |
| 507 | + | |
| 508 | + | |
507 | 509 | | |
508 | 510 | | |
509 | 511 | | |
| |||
0 commit comments