diff options
author | Claudiu Manoil <claudiu.manoil@freescale.com> | 2014-03-11 20:01:24 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-12 08:47:52 +0400 |
commit | b338ce270ed589f8a7b62e239632baa48f947b17 (patch) | |
tree | cbf5b4ece8cd443b52ca7a4b91cc5482adc0ccb3 /net/core/dev.c | |
parent | 4f1d4d54f99e9302058764833028712c3454266b (diff) | |
download | linux-b338ce270ed589f8a7b62e239632baa48f947b17.tar.xz |
gianfar: Fix multi-queue support checks @probe()
priv is not instantiated at gfar_of_init() time, when
parsing the DT for info on supported HW queues. Before
the netdev can be allocated, the number of supported
queues must be known. Because the number of supported
queues depends on device type, move the compatibility
checks before netdev allocation. Local vars are used
to hold the operation mode info before netdev allocation.
This fixes the null accesses for priv->.., in gfar_of_init.
Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions