From: Daisuke Ogino Date: Tue, 26 Jul 2011 23:08:37 +0000 (-0700) Subject: procfs: return ENOENT on opening a being-removed proc entry X-Git-Tag: v3.1-rc1~195 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2857e79a2ba7c155eaa1a7d3581c8d26b31e54e;p=pandora-kernel.git procfs: return ENOENT on opening a being-removed proc entry Change the return value to ENOENT. This return value is then returned when opening the proc entry that have been removed. For example, open("/proc/bus/pci/XX/YY") when the corresponding device is being hot-removed. Signed-off-by: Daisuke Ogino Cc: Jesse Barnes Acked-by: Alexey Dobriyan Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed