openwrtv4/target/linux
Gabor Juhos 665bb27499 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: 7bbf4117c6 ("ar71xx: Add kernel 4.9 support")
Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
2017-12-16 00:00:25 +01:00
..
adm5120 treewide: populate boardname and model earlier 2017-07-15 23:13:34 +02:00
adm8668 build: fix subtarget descriptions 2016-09-04 13:35:11 +02:00
apm821xx apm821xx: use x86's upgrade scripts for MyBook Live 2017-12-14 09:29:30 +01:00
ar7 kernel: bump 4.9 to 4.9.63 2017-11-22 20:45:52 +01:00
ar71xx ar71xx: fix invalid pointer dereference in rb95x_nand_scan_fixup() 2017-12-16 00:00:25 +01:00
arc770 arc770: mark as source-only 2017-10-28 13:59:03 +02:00
archs38 treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
armvirt merge: targets: update image generation and targets 2017-12-08 19:41:18 +01:00
at91 at91: remove unused at91part driver 2017-10-22 15:17:42 +02:00
ath25 kernel: cleanup CONFIG_SCHED_HRTICK 2017-06-29 04:46:59 +02:00
au1000 kernel: update kernel 3.18 to version 3.18.43 2016-10-24 20:25:14 +03:00
bcm53xx bcm53xx: use otrx for creating TRX images 2017-11-17 11:43:33 +01:00
brcm47xx brcm47xx: remove versions from linksys-e1000 target 2017-12-11 12:44:50 +01:00
brcm63xx brcm63xx: fix an OOPS when accessing the basemode register on 6368 2017-12-13 16:40:47 +01:00
brcm2708 kernel: bump 4.9 to 4.9.63 2017-11-22 20:45:52 +01:00
cns3xxx kernel: bump 4.9 to 4.9.67 2017-12-07 01:41:09 +02:00
gemini kernel: Update kernel 4.4 to 4.4.100 2017-11-25 19:48:39 +01:00
generic kernel: fix compiler warning in mtdsplit_minor.c under 4.4 2017-12-15 23:57:09 +01:00
imx6 treewide: add only one device when appending to TARGET_DEVICES 2017-12-12 18:47:26 +01:00
ipq806x base-files: unify get_dt_led helper function 2017-12-14 09:29:30 +01:00
ixp4xx ixp4xx: Update to 4.9 kernel, refresh patches. Remove kmod-spi-gpio-old usage. 2017-11-18 08:21:38 -05:00
kirkwood treewide: add only one device when appending to TARGET_DEVICES 2017-12-12 18:47:26 +01:00
lantiq base-files: unify get_dt_led helper function 2017-12-14 09:29:30 +01:00
layerscape kernel: bump 4.9 to 4.9.67 2017-12-07 01:41:09 +02:00
malta treewide: do not use IMG_PREFIX in Image/Prepare 2017-10-26 12:26:25 +02:00
mcs814x merge: targets: update image generation and targets 2017-12-08 19:41:18 +01:00
mediatek kernel: bump 4.9 to 4.9.63 2017-11-22 20:45:52 +01:00
mpc85xx mpc85xx: use image metadata 2017-10-25 09:22:13 +02:00
mvebu treewide: add only one device when appending to TARGET_DEVICES 2017-12-12 18:47:26 +01:00
mxs treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
octeon treewide: use only board_name function to get name 2017-07-15 23:13:34 +02:00
omap omap: clean up configuration 2017-10-18 21:46:05 +02:00
omap24xx merge: ssid: update default ssid 2017-12-08 19:41:18 +01:00
orion orion: Switch to 4.9 kernel 2017-10-24 18:39:17 -07:00
oxnas kernel: Update kernel 4.4 to 4.4.100 2017-11-25 19:48:39 +01:00
pistachio kernel: bump 4.9 to 4.9.67 2017-12-07 01:41:09 +02:00
ppc40x treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
ppc44x ppc44x: mark as broken 2017-01-10 12:49:34 +01:00
ramips treewide: add only one device when appending to TARGET_DEVICES 2017-12-12 18:47:26 +01:00
rb532 treewide: drop obsolete kernel config options 2017-10-04 20:08:15 +02:00
sunxi kernel: bump 4.9 to 4.9.65 2017-11-24 14:09:11 +02:00
uml merge: targets: update image generation and targets 2017-12-08 19:41:18 +01:00
x86 merge: targets: update image generation and targets 2017-12-08 19:41:18 +01:00
xburst xburst: enable high-res timers, refresh kernel config 2017-06-07 18:31:10 +02:00
zynq treewide: use only board_name function to get name 2017-07-15 23:13:34 +02:00
Makefile