From: Edward Cree Date: Mon, 3 Nov 2014 14:14:35 +0000 (+0000) Subject: sfc: don't BUG_ON efx->max_channels == 0 in probe X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~119^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fd3d3a4307283a1d85d9a383223055954b7135f;p=pandora-kernel.git sfc: don't BUG_ON efx->max_channels == 0 in probe efx_ef10_probe() was BUGging out if the BAR2 size was 0. This is unnecessarily violent; instead we should just fail to probe the device. Kept a WARN_ON as this problem indicates a broken or misconfigured NIC. Signed-off-by: Edward Cree Signed-off-by: David S. Miller --- Reading git-diff-tree failed