From: Yuval Mintz Date: Thu, 10 Jan 2013 04:53:39 +0000 (+0000) Subject: bnx2x: Fix fastpath structures when memory allocation fails X-Git-Tag: v3.8-rc4~29^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4864a16ae69dd651147aa72584d20d2c24536712;p=pandora-kernel.git bnx2x: Fix fastpath structures when memory allocation fails When allocating Tx queues, if for some reason (e.g., lack of memory) allocation fails, driver will incorrectly calculate the pointers of the various queues. This patch repositions all pointers in such a case to point at sequential structures in memory, allowing the bnx2x macros to be used correctly when accessing them. Signed-off-by: Yuval Mintz Signed-off-by: Ariel Elior Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- Reading git-diff-tree failed