dsa: do not dereference non-existing routing table
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 5 Feb 2015 13:52:06 +0000 (14:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Feb 2015 06:07:36 +0000 (22:07 -0800)
commit6e0ba47f9191511a91556b7ca2c491362680a0f3
tree056bfafda797d81c2240e272e433efc194dae587
parent11b1f8288d4341af5d755281c871bff6c3e270dd
dsa: do not dereference non-existing routing table

In the case where there is only one switch, no routing table will have
been allocated, so do not dereference it in this case.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6131.c