ar71xx: Fix NULL pointer dereferece in at803x_link_change_notify()
authorAndrey Jr. Melnikov <temnota.am@gmail.com>
Sat, 7 Oct 2017 21:00:28 +0000 (00:00 +0300)
committerJohn Crispin <john@phrozen.org>
Sat, 7 Oct 2017 21:19:15 +0000 (23:19 +0200)
commit2cb8f0a4cf0f3d6606cad6b0cff687b71a78c3dd
treeba85ea94e11b9443879243381f6757ee468603bf
parent9c9f7b0434a7f006251026cfe0e60025a377956d
ar71xx: Fix NULL pointer dereferece in at803x_link_change_notify()

Check pdata pointer before use to avoid OOPS if dev_get_platdata() return
NULL.

Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com>
target/linux/ar71xx/patches-4.4/902-at803x-add-reset-gpio-pdata.patch