summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorRajat Jain <rajatja@google.com>2020-07-07 02:32:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-02 10:34:39 +0300
commitadd217e96ae8fd60af761cca19ca2d68200b89f6 (patch)
treea686b3f759898b3bf10ab0c1732fb6a72a1a448d /fs/btrfs
parentc6ff4318467b9636c3fde55150504d1899902568 (diff)
downloadlinux-add217e96ae8fd60af761cca19ca2d68200b89f6.tar.xz
PCI: Add device even if driver attach failed
commit 2194bc7c39610be7cabe7456c5f63a570604f015 upstream. device_attach() returning failure indicates a driver error while trying to probe the device. In such a scenario, the PCI device should still be added in the system and be visible to the user. When device_attach() fails, merely warn about it and keep the PCI device in the system. This partially reverts ab1a187bba5c ("PCI: Check device_attach() return value always"). Link: https://lore.kernel.org/r/20200706233240.3245512-1-rajatja@google.com Signed-off-by: Rajat Jain <rajatja@google.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: stable@vger.kernel.org # v4.6+ [sudip: use dev_warn] Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs')
0 files changed, 0 insertions, 0 deletions