commit | 7fa0043d5c74c6ef6ab58ecf7528fd33c6cb07a8 | [log] [tgz] |
---|---|---|
author | Robert Hancock <hancock@sedsystems.ca> | Tue Jun 11 10:56:02 2019 -0600 |
committer | David S. Miller <davem@davemloft.net> | Thu Jun 13 22:41:24 2019 -0700 |
tree | 68ddce5de89015f7257dac816888257b5b382d12 | |
parent | f9a94f85e885c8eced04ef839dfda90f2511b185 [diff] |
net: axienet: move use of resource after validity check We were accessing the pointer returned from platform_get_resource before checking if it was valid, causing an oops if it was not. Move this access after the call to devm_ioremap_resource which does the validity check. Signed-off-by: Robert Hancock <hancock@sedsystems.ca> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>