No description
Find a file
Gabor Juhos 2ecc413107 ar71xx: fix invalid pointer dereference in c60_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
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: 7bbf4117c6 ("ar71xx: Add kernel 4.9 support")
Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
Tested-by: Christian Lamparter <chunkeey@gmail.com>
2017-12-15 23:57:41 +01:00
.github github: include pull request template 2017-03-12 17:38:31 +01:00
config kernel: fix spelling in CONFIG_DEVTMPFS help text 2017-12-11 12:43:29 +01:00
include build: allow PKG_PREPARED_DEPENDS and PKG_CONFIG_DEPENDS to be changed after including package.mk 2017-12-12 12:45:28 +01:00
package iproute2: cake: support new operating modes 2017-12-15 23:54:51 +01:00
scripts base-files: allow skipping of hash verification 2017-12-14 09:29:31 +01:00
target ar71xx: fix invalid pointer dereference in c60_nand_scan_fixup() 2017-12-15 23:57:41 +01:00
toolchain toolchain: musl: update to current HEAD 2017-12-08 19:54:21 +01:00
tools firmware-utils: mktplinkfw: add support for BR region code 2017-12-14 09:29:30 +01:00
.gitattributes
.gitignore gitignore: add /overlay 2017-01-15 18:16:29 +01:00
BSDmakefile
Config.in merge: base: update base-files and basic config 2017-12-08 19:41:18 +01:00
feeds.conf.default Add video feed to feeds.conf.default 2017-01-25 16:04:39 +01:00
LICENSE
Makefile merge: base: update base-files and basic config 2017-12-08 19:41:18 +01:00
README merge: base: update base-files and basic config 2017-12-08 19:41:18 +01:00
rules.mk rules.mk: export TMPDIR 2017-12-12 17:44:01 +01:00

This is the buildsystem for the OpenWrt Linux distribution.

Please use "make menuconfig" to choose your preferred
configuration for the toolchain and firmware.

You need to have installed gcc, binutils, bzip2, flex, python, perl, make,
find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers.

Run "./scripts/feeds update -a" to get all the latest package definitions
defined in feeds.conf / feeds.conf.default respectively
and "./scripts/feeds install -a" to install symlinks of all of them into
package/feeds/.

Use "make menuconfig" to configure your image.

Simply running "make" will build your firmware.
It will download all sources, build the cross-compile toolchain, 
the kernel and all choosen applications.

To build your own firmware you need to have access to a Linux, BSD or MacOSX system
(case-sensitive filesystem required). Cygwin will not be supported because of
the lack of case sensitiveness in the file system.


Sunshine!
	Your OpenWrt Community
	http://www.openwrt.org