The patch titled OMAP clockdomain: if no autodeps exist, don't try to add or remove them has been added to the -mm tree. Its filename is omap-clockdomain-if-no-autodeps-exist-dont-try-to-add-or-remove-them.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: OMAP clockdomain: if no autodeps exist, don't try to add or remove them From: Paul Walmsley <paul@xxxxxxxxx> _clkdm_add_autodeps() and _clkdm_del_autodeps() will attempt to dereference a NULL pointer if no autodeps were supplied to clkdm_init(). Based on a patch from Roel Kluin <roel.kluin@xxxxxxxxx> - thanks Roel. Signed-off-by: Paul Walmsley <paul@xxxxxxxxx> Reported-by: Roel Kluin <roel.kluin@xxxxxxxxx> Cc: Tony Lindgren <tony@xxxxxxxxxxx> Cc: Russell King <linux@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/arm/mach-omap2/clockdomain.c | 6 ++++++ 1 file changed, 6 insertions(+) diff -puN arch/arm/mach-omap2/clockdomain.c~omap-clockdomain-if-no-autodeps-exist-dont-try-to-add-or-remove-them arch/arm/mach-omap2/clockdomain.c --- a/arch/arm/mach-omap2/clockdomain.c~omap-clockdomain-if-no-autodeps-exist-dont-try-to-add-or-remove-them +++ a/arch/arm/mach-omap2/clockdomain.c @@ -173,6 +173,9 @@ static void _clkdm_add_autodeps(struct c { struct clkdm_autodep *autodep; + if (!autodeps) + return; + for (autodep = autodeps; autodep->clkdm.ptr; autodep++) { if (IS_ERR(autodep->clkdm.ptr)) continue; @@ -201,6 +204,9 @@ static void _clkdm_del_autodeps(struct c { struct clkdm_autodep *autodep; + if (!autodeps) + return; + for (autodep = autodeps; autodep->clkdm.ptr; autodep++) { if (IS_ERR(autodep->clkdm.ptr)) continue; _ Patches currently in -mm which might be from paul@xxxxxxxxx are linux-next.patch omap-clockdomain-if-no-autodeps-exist-dont-try-to-add-or-remove-them.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html