summaryrefslogtreecommitdiffstats
path: root/kernel/time/ntp_internal.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-06-27 19:01:40 +0200
committerSteven Rostedt <rostedt@goodmis.org>2014-06-30 13:22:15 -0400
commit06d0713904e508f765e0d7146c14b67bbd248fe7 (patch)
tree568f93a984be6f8b1524e4883130aee38fe6692e /kernel/time/ntp_internal.h
parent48212542067a7ff6cbe829dbae279c2ff7557b44 (diff)
downloadop-kernel-dev-06d0713904e508f765e0d7146c14b67bbd248fe7.zip
op-kernel-dev-06d0713904e508f765e0d7146c14b67bbd248fe7.tar.gz
uprobes: Change unregister/apply to WARN() if uprobe/consumer is gone
Add WARN_ON's into uprobe_unregister() and uprobe_apply() to ensure that nobody tries to play with the dead uprobe/consumer. This helps to catch the bugs like the one fixed by the previous patch. In the longer term we should fix this poorly designed interface. uprobe_register() should return "struct uprobe *" which should be passed to apply/unregister. Plus other semantic changes, see the changelog in commit 41ccba029e94. Link: http://lkml.kernel.org/p/20140627170140.GA18322@redhat.com Acked-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/time/ntp_internal.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud