From: Zhao, Yu Date: Mon, 22 Sep 2008 06:26:05 +0000 (+0800) Subject: PCI: fix hotplug get_##name return value problem X-Git-Tag: v2.6.28-rc1~77^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8761fe80ed052634153438405c9048611ae7ae1;p=pandora-kernel.git 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 Reviewed-by: Matthew Wilcox Signed-off-by: Yu Zhao Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed