- rtc-fix-idr-locking.patch removed from -mm tree

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

 



The patch titled

     rtc: fix idr locking

has been removed from the -mm tree.  Its filename is

     rtc-fix-idr-locking.patch

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

------------------------------------------------------
Subject: rtc: fix idr locking
From: Sonny Rao <sonny@xxxxxxxxxxx>

We need to serialize access to the global rtc_idr even in this error path.

Signed-off-by: Sonny Rao <sonny@xxxxxxxxxxx>
Acked-by: Alessandro Zummo <a.zummo@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/rtc/class.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN drivers/rtc/class.c~rtc-fix-idr-locking drivers/rtc/class.c
--- a/drivers/rtc/class.c~rtc-fix-idr-locking
+++ a/drivers/rtc/class.c
@@ -94,7 +94,9 @@ exit_kfree:
 	kfree(rtc);
 
 exit_idr:
+	mutex_lock(&idr_lock);
 	idr_remove(&rtc_idr, id);
+	mutex_unlock(&idr_lock);
 
 exit:
 	dev_err(dev, "rtc core: unable to register %s, err = %d\n",
_

Patches currently in -mm which might be from sonny@xxxxxxxxxxx are

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