+ rtc-fix-idr-locking.patch added to -mm tree

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

 



The patch titled

     rtc: fix idr locking

has been added to the -mm tree.  Its filename is

     rtc-fix-idr-locking.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
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>
Cc: 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
@@ -93,7 +93,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
rtc-fix-idr-locking.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