- rtc-pcf8563-detect-polarity-of-century-bit-automatically-fix.patch removed from -mm tree

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

 



The patch titled
     rtc-pcf8563: detect polarity of century bit automatically: fix
has been removed from the -mm tree.  Its filename was
     rtc-pcf8563-detect-polarity-of-century-bit-automatically-fix.patch

This patch was dropped because it was folded into rtc-pcf8563-detect-polarity-of-century-bit-automatically.patch

------------------------------------------------------
Subject: rtc-pcf8563: detect polarity of century bit automatically: fix
From: Atsushi Nemoto <anemo@xxxxxxxxxxxxx>

Sorry, I forgot to change an argument of kfree() in pcf8563_detach().
Though it should work while "client" is a first member in struct
pcf8563, it should be changed to pass "pcf8563" instead of "client".

Cc: Atsushi Nemoto <anemo@xxxxxxxxxxxxx>
Cc: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@xxxxxxxxxxx>
Cc: <stable@xxxxxxxxxx>
Cc: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/rtc/rtc-pcf8563.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/rtc/rtc-pcf8563.c~rtc-pcf8563-detect-polarity-of-century-bit-automatically-fix drivers/rtc/rtc-pcf8563.c
--- a/drivers/rtc/rtc-pcf8563.c~rtc-pcf8563-detect-polarity-of-century-bit-automatically-fix
+++ a/drivers/rtc/rtc-pcf8563.c
@@ -336,6 +336,7 @@ exit:
 
 static int pcf8563_detach(struct i2c_client *client)
 {
+	struct pcf8563 *pcf8563 = container_of(client, struct pcf8563, client);
 	int err;
 	struct rtc_device *rtc = i2c_get_clientdata(client);
 
@@ -345,7 +346,7 @@ static int pcf8563_detach(struct i2c_cli
 	if ((err = i2c_detach_client(client)))
 		return err;
 
-	kfree(client);
+	kfree(pcf8563);
 
 	return 0;
 }
_

Patches currently in -mm which might be from anemo@xxxxxxxxxxxxx are

origin.patch
rtc-pcf8563-detect-polarity-of-century-bit-automatically.patch
rtc-pcf8563-detect-polarity-of-century-bit-automatically-fix.patch
make-cardbus_mem_size-and-cardbus_io_size-boot-options.patch
serial-serial_txx9-driver-update.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