From: Naveen N. Rao Date: Fri, 6 Jul 2012 01:30:58 +0000 (+0000) Subject: powerpc/hw_breakpoints: Fix incorrect pointer access X-Git-Tag: v3.6-rc1~132^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac84aa2b3b9b791eac45174d1966d5fdf3bbba1c;p=pandora-kernel.git powerpc/hw_breakpoints: Fix incorrect pointer access If arch_validate_hwbkpt_settings() fails, bp->ctx won't be valid and the kernel panics. Add a check to fix this. Reported-by: Edjunior Barbosa Machado Signed-off-by: Naveen N. Rao Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed