]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
idr: print a stack dump after ida_remove warning
authorJean Delvare <jdelvare@suse.de>
Thu, 9 May 2013 23:57:49 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:59 +0000 (14:17 +1000)
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>
lib/idr.c

index cca4b9302a710c5ef0e1a66355302040ada9d3d7..cee828827f6077616d08f52fb082bb4c50e6084a 100644 (file)
--- 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);