]> git.baikalelectronics.ru Git - kernel.git/commit
net: check the return value of ndo_select_queue()
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 13 Nov 2009 21:54:04 +0000 (21:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2009 06:08:05 +0000 (22:08 -0800)
commit1a5865c5b79faed3738455defa829bc5e5597515
tree33222d72237e487050116c70849a932dc657fd24
parent79de36daabb974497e48e9999a05e60811766637
net: check the return value of ndo_select_queue()

Check the return value of ndo_select_queue(). If the value isn't smaller
than the real_num_tx_queues, print a warning message, and reset it to zero.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
----
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c