[patch 2/2] pcmcia: fix zeroing of cm4000_cs.c data

Dominik Brodowski linux at dominikbrodowski.net
Sun Jun 4 10:33:31 EDT 2006


From: Dominik Brodowski <linux at dominikbrodowski.net>
Date: Thu, 1 Jun 2006 18:29:20 +0200
Subject: [PATCH] pcmcia: fix zeroing of cm4000_cs.c data

Fix the incorrect calculation of how much to zero out in struct cm4000_dev
on device initialization.

Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>

---

 drivers/char/pcmcia/cm4000_cs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

2b0dd802ba1ff9b7001f5f9bd9b4d192a4aabf81
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c
index 128b263..eab5394 100644
--- a/drivers/char/pcmcia/cm4000_cs.c
+++ b/drivers/char/pcmcia/cm4000_cs.c
@@ -149,7 +149,7 @@ struct cm4000_dev {
 #define	ZERO_DEV(dev)  						\
 	memset(&dev->atr_csum,0,				\
 		sizeof(struct cm4000_dev) - 			\
-		/*link*/ sizeof(struct pcmcia_device) - 	\
+		/*link*/ sizeof(struct pcmcia_device *) - 	\
 		/*node*/ sizeof(dev_node_t) - 			\
 		/*atr*/ MAX_ATR*sizeof(char) - 			\
 		/*rbuf*/ 512*sizeof(char) - 			\
-- 
1.3.3




More information about the linux-pcmcia mailing list