From: Hariprasad Shenai Date: Mon, 15 Sep 2014 21:28:46 +0000 (+0530) Subject: cxgb4: Don't allocate adapter structure for all PF's X-Git-Tag: fixes-for-v3.18-merge-window~87^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6ce2628f32271c037a8c12e1994c9fba3a4af49;p=pandora-kernel.git cxgb4: Don't allocate adapter structure for all PF's commit 35b1de557970 ("rdma/cxgb4: Fixes cxgb4 probe failure in VM when PF is exposed through PCI Passthrough") moved the code to check for SR-IOV PF[0..3] much further down in init_one() past the point where we allocate a (struct adapter) for PF[0..3]. As a result, we left four of these on ever module remove. Fix: Allocate adapter structure only for PF4 Signed-off-by: Hariprasad Shenai Signed-off-by: David S. Miller --- Reading git-diff-tree failed