aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2012-11-25 16:01:42 -0500
committerOleg Nesterov <oleg@redhat.com>2013-02-08 11:47:09 -0500
commit06b7bcd8cbd7eb1af331e437ec3d8f5182ae1b7e (patch)
treead2fc6a39d2c5ecfa45f4cd13fd0140839894b52 /net/mac80211
parent441f1eb7db8babe2b6b4bc805f023739dbb70e33 (diff)
uprobes: Introduce uprobe_is_active()
The lifetime of uprobe->rb_node and uprobe->inode is not refcounted, delete_uprobe() is called when we detect that uprobe has no consumers, and it would be deadly wrong to do this twice. Change delete_uprobe() to WARN() if it was already called. We use RB_CLEAR_NODE() to mark uprobe "inactive", then RB_EMPTY_NODE() can be used to detect this case. RB_EMPTY_NODE() is not used directly, we add the trivial helper for the next change. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Anton Arapov <anton@redhat.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Diffstat (limited to 'net/mac80211')
0 files changed, 0 insertions, 0 deletions