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: 7bbf4117c6fe ("ar71xx: Add kernel 4.9 support")
Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
2017-12-16 00:00:25 +01:00
..
2015-02-15 19:45:29 +00:00
2015-07-07 08:06:05 +00:00
2016-01-10 17:19:34 +00:00
2015-08-17 06:16:54 +00:00
2016-04-17 22:03:58 +00:00
2014-11-26 08:28:22 +00:00
2016-04-17 22:03:58 +00:00
2017-10-11 22:32:39 +02:00
2017-10-11 22:36:04 +02:00
2017-01-20 00:40:33 +01:00
2015-09-24 09:08:47 +00:00
2017-03-30 09:57:22 +02:00
2016-06-06 14:58:11 +02:00