All of lore.kernel.org
 help / color / mirror / Atom feed
* - rtc-pcf8563-detect-polarity-of-century-bit-automatically-fix.patch removed from -mm tree
@ 2007-02-08 22:17 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-08 22:17 UTC (permalink / raw)
  To: anemo, a.zummo, dbrownell, jean-baptiste.maneyrol, stable, mm-commits


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@mba.ocn.ne.jp>

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@mba.ocn.ne.jp>
Cc: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@teamlog.com>
Cc: <stable@kernel.org>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 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@mba.ocn.ne.jp 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-08 22:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-08 22:17 - rtc-pcf8563-detect-polarity-of-century-bit-automatically-fix.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.