aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/at91/image
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@freemail.hu>2017-12-12 21:49:50 +0100
committerJohn Crispin <john@phrozen.org>2017-12-16 00:00:25 +0100
commit665bb2749906aff4d4ec607a308353fa30cb1b3a (patch)
tree799010fadb4db241b1290c53c61d0f1f8d71fa96 /target/linux/at91/image
parent2ecc4131077b26ed8b95b88dea870b1f3a9444c2 (diff)
downloadupstream-665bb2749906aff4d4ec607a308353fa30cb1b3a.tar.gz
upstream-665bb2749906aff4d4ec607a308353fa30cb1b3a.tar.bz2
upstream-665bb2749906aff4d4ec607a308353fa30cb1b3a.zip
ar71xx: fix invalid pointer dereference in rb95x_nand_scan_fixup()
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 chip->options causes an invalid pointer dereference (FS#1200). Update the code to use the mtd_to_nand() helper under 4.9 to obtain the address of the chip specific data. Fixes: 7bbf4117c6fe ("ar71xx: Add kernel 4.9 support") Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
Diffstat (limited to 'target/linux/at91/image')
0 files changed, 0 insertions, 0 deletions