[merged] omap-clockdomain-if-no-autodeps-exist-dont-try-to-add-or-remove-them.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     OMAP clockdomain: if no autodeps exist, don't try to add or remove them
has been removed from the -mm tree.  Its filename was
     omap-clockdomain-if-no-autodeps-exist-dont-try-to-add-or-remove-them.patch

This patch was dropped because it was merged into mainline or a subsystem tree

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

--
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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux