From: Roland Dreier Date: Fri, 14 Nov 2014 20:54:36 +0000 (-0800) Subject: target: Fix target_core_register_fabric() for built-in fabric modules X-Git-Tag: omap-for-v3.19/fixes-rc1~19^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7b7af6e98b390c1f7d5d208d18cb7d8b7beb0f1;p=pandora-kernel.git target: Fix target_core_register_fabric() for built-in fabric modules If we try to create a fabric directory in configfs for one of the default hard-coded fabric modules (iscsi and loopback), and that fabric is actually built into the kernel, then the operation will spuriously fail because request_module() (for the code that's already linked into the kernel) fails. Fix this by running the autoprobing code only if an initial target_core_get_fabric() fails. Signed-off-by: Roland Dreier Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed