]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
idr: print a stack dump after ida_remove warning
authorJean Delvare <jdelvare@suse.de>
Wed, 19 Jun 2013 00:08:25 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:44 +0000 (17:27 +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);