Hi Christian,
2017.12.14. 17:07 keltezéssel, Christian Lamparter írta:
> On Wednesday, December 13, 2017 8:31:50 PM CET Gabor Juhos wrote:
>
>> 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: 7bbf4117c6fe ("ar71xx: Add kernel 4.9 support")
>
>> Signed-off-by: Gabor Juhos <[email protected]>
>
> Tested-by: Christian Lamparter <[email protected]>
>
>
>
> Yep, works on my C-60.
Great. Thanks for testing!
-Gabor
>
>
>
> Kernel is: Linux c-60 4.9.67
>
> "OpenWrt SNAPSHOT, r5518+1-bfa42ef8f5"
>
> Thanks
>
_______________________________________________
Lede-dev mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/lede-dev