2ecc413107
Since Linux 4.6, mtd->priv no longer points to the NAND specific
structure. Under 4.9 it contains NULL, thus using it to access
the fields of the nand_chip structure causes an invalid pointer
dereference.
Update the code to use the mtd_to_nand() helper under 4.9 to obtain
the address of the chip specific data.
Compile tested only.
Fixes:
|
||
---|---|---|
.. | ||
base-files | ||
files | ||
generic | ||
image | ||
mikrotik | ||
nand | ||
patches-4.4 | ||
patches-4.9 | ||
config-4.4 | ||
config-4.9 | ||
Makefile | ||
modules.mk |