]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: fix hotplug get_##name return value problem
authorZhao, Yu <yu.zhao@intel.com>
Mon, 22 Sep 2008 06:26:05 +0000 (14:26 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 20 Oct 2008 17:54:25 +0000 (10:54 -0700)
commit42ddce5f5b5cc7ab00651ce34327d3d2d621ba28
tree4a8a58efa1260310c96c7f1d9e08f11cd042e71c
parent441aa544574e5323e60f557d0cb6d972c364f725
PCI: fix hotplug get_##name return value problem

Currently, get_##name in pci_hotplug_core.c will return 0 if module
unload wins the race between unload & reading the hotplug file.  Fix
that case to return -ENODEV like it should.

Reviewed-by: Alex Chiang <achiang@hp.com>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pci_hotplug_core.c