From: Huang Shijie Date: Wed, 27 Oct 2010 22:34:52 +0000 (-0700) Subject: kernel/resource.c: handle reinsertion of an already-inserted resource X-Git-Tag: v2.6.37-rc1~85^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5de1cb2d0f1c1e5475d2bedf65b76828f8cdde22;p=pandora-kernel.git kernel/resource.c: handle reinsertion of an already-inserted resource If the same resource is inserted to the resource tree (maybe not on purpose), a dead loop will be created. In this situation, The kernel does not report any warning or error :( The command below will show a endless print. #cat /proc/iomem [akpm@linux-foundation.org: add WARN_ON()] Signed-off-by: Huang Shijie Cc: Jesse Barnes Cc: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed