From: Dmitry Kravkov Date: Sun, 27 Oct 2013 11:07:00 +0000 (+0200) Subject: bnx2x: prevent FW assert on low mem during unload X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~67^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3ed4eaef4932fd3867465784d11a36deaa6d22c;p=pandora-kernel.git bnx2x: prevent FW assert on low mem during unload Buffers for FW statistics were allocated at an inappropriate time; In a machine where the driver encounters problems allocating all of its queues, the driver would still create FW requests for the statistics of the non-existing queues. The wrong order of memory allocation could lead to zeroed statistics messages being sent, leading to fw assert in case function 0 was down. This changes the order of allocations, guaranteeing that statistic requests will only be generated for actual queues. Signed-off-by: Dmitry Kravkov Signed-off-by: Yuval Mintz Signed-off-by: Ariel Elior Signed-off-by: David S. Miller --- Reading git-diff-tree failed