Re: [RFC] [PATCH 2.6.37-rc5-tip 8/20] 8: uprobes: mmap and forkhooks.

From: Steven Rostedt
Date: Thu Jan 27 2011 - 12:04:18 EST


On Wed, 2011-01-26 at 14:36 +0530, Srikar Dronamraju wrote:

> > Not to mention that p is uninitialized. Did this code ever work?
>
> I think the original patch that I sent had p initialized. I think it got
> dropped off by Peter when he replied. Please do confirm.


> +static void search_within_subtree(struct rb_node *n, struct inode *inode,
> + struct list_head *tmp_list)
> +{
> + struct rb_node *p;
> +
> + if (p)
> + __search_within_subtree(p, inode, tmp_list);
> +
> + p = n->rb_right;
> + if (p)
> + __search_within_subtree(p, inode, tmp_list);
> +}
> +
>
The above is from the original patch. 'p' does not look initialized to
me.

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/