Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 [[email protected]: add WARN_ON()] Signed-off-by: Huang Shijie <[email protected]> Cc: Jesse Barnes <[email protected]> Cc: Bjorn Helgaas <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information