public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Missing put_cpu() in arch/ia64/sn/kernel/sn2/sn_hwperf.c?
@ 2011-08-08 18:05 Thomas Meyer
  2011-08-08 21:37 ` Tony Luck
  2011-08-20  4:04 ` Mike Frysinger
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Meyer @ 2011-08-08 18:05 UTC (permalink / raw)
  To: Linux Kernel Mailing List, jes, tony.luck; +Cc: Julia Lawall

The function sn_hwperf_op_cpu() seems to miss a corresponding put_cpu().

Or is this done in another function? I didn't find it.

thomas

---

 Check for get/put_cpu() imbalances

 The simplified semantic patch that makes this report is:

* get_cpu()
... when != put_cpu()
? get_cpu()

drivers/crypto/n2_core.c:986:25-26: WARNING: Possible missing put_cpu()!
drivers/crypto/n2_core.c:1041:25-26: WARNING: Possible missing put_cpu()!
drivers/scsi/fcoe/fcoe.c:1163:29-30: WARNING: Possible missing put_cpu()!
drivers/scsi/fcoe/fcoe.c:1630:47-48: WARNING: Possible missing put_cpu()!
arch/um/sys-i386/ldt.c:53:17-18: WARNING: Possible missing put_cpu()!
arch/powerpc/kernel/machine_kexec_64.c:188:18-19: WARNING: Possible missing put_cpu()!
arch/ia64/sn/kernel/sn2/sn_hwperf.c:618:52-53: WARNING: Possible missing put_cpu()!
arch/s390/oprofile/hwsampler.c:553:16-17: WARNING: Possible missing put_cpu()!
arch/s390/kernel/vtime.c:430:22-23: WARNING: Possible missing put_cpu()!
arch/s390/kernel/vtime.c:473:15-16: WARNING: Possible missing put_cpu()!
arch/blackfin/kernel/cplbinfo.c:89:9-10: WARNING: Possible missing put_cpu()!

This list contains some false positives.

Thanks to Julia for the semantic patch to find these kind of errors!



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-20  4:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-08 18:05 Missing put_cpu() in arch/ia64/sn/kernel/sn2/sn_hwperf.c? Thomas Meyer
2011-08-08 21:37 ` Tony Luck
2011-08-11  6:12   ` Jes Sorensen
2011-08-11 10:58     ` Robin Holt
2011-08-11 13:59       ` Jack Steiner
2011-08-13  7:37     ` Thomas Meyer
2011-08-20  4:04 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox