commit | 3420ea88509f9d585b39f36e737022faf0286d9a | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Thu Nov 17 17:40:03 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Fri Nov 18 13:48:53 2016 -0500 |
tree | dfcb5b7ff7ccf6d89f8bd6206ba4efe23b65b19d | |
parent | a7fe9d466f6a33558a38c7ca9d58bcc83512d577 [diff] |
net: ethernet: ti: cpsw: add missing sanity check Make sure to check for allocation failures before dereferencing a NULL-pointer during probe. Fixes: 649a1688c960 ("net: ethernet: ti: cpsw: create common struct to hold shared driver data") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>