summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2013-06-07 10:09:43 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2013-06-17 18:20:36 +1000
commit3aa223cb4131e633bc3c6240264cfc3f9b22b821 (patch)
tree0b67163426c399b4f1cc62fcb79a7fd77336f6c8 /lib
parent2cef44dffd2c23e7065a3897b05face949a1a375 (diff)
idr: print a stack dump after ida_remove warning
We print a dump stack after idr_remove warning. This is useful to find the faulty piece of code. Let's do the same for ida_remove, as it would be equally useful there. Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Tejun Heo <tj@kernel.org> Cc: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/idr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/idr.c b/lib/idr.c
index cca4b9302a71..cee828827f60 100644
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -1066,6 +1066,7 @@ void ida_remove(struct ida *ida, int id)
err:
printk(KERN_WARNING
"ida_remove called for id=%d which is not allocated.\n", id);
+ dump_stack();
}
EXPORT_SYMBOL(ida_remove);