Hi Antonio,
On 04/04/2012 02:42 PM, Antonio Quartulli wrote:
rcu_read_lock(); head =&entry->orig_list; hlist_for_each_entry_rcu(tmp_orig_entry, node, head, list) { if (tmp_orig_entry->orig_node == orig_node) {
found = true;
} } rcu_read_unlock();orig_entry = tmp_orig_entry; break;
- return found;
- return orig_entry; }
I'm not that well into the tt code, but shouldn't there be some reference counting when handing pointers round like this?