3.9-rc1 powerpc ptrace.c: 'brk.len' is used uninitialized

Philippe De Muyter phdm at macqel.be
Fri Mar 8 21:24:22 EST 2013


On Fri, Mar 08, 2013 at 10:03:34AM +1100, Michael Neuling wrote:
> Michael Neuling <mikey at neuling.org> wrote:
> 
> diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
> index 245c1b6..8564515 100644
> --- a/arch/powerpc/kernel/ptrace.c
> +++ b/arch/powerpc/kernel/ptrace.c
> @@ -1428,6 +1428,7 @@ static long ppc_set_hwdebug(struct task_struct *child,
>  
>  	brk.address = bp_info->addr & ~7UL;
>  	brk.type = HW_BRK_TYPE_TRANSLATE;
> +	brk.len = 0;
>  	if (bp_info->trigger_type & PPC_BREAKPOINT_TRIGGER_READ)
>  		brk.type |= HW_BRK_TYPE_READ;
>  	if (bp_info->trigger_type & PPC_BREAKPOINT_TRIGGER_WRITE)

That's ok.  Thanks

Philippe


More information about the Linuxppc-dev mailing list