summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2006-06-01 18:29:20 +0200
committerDominik Brodowski <linux@dominikbrodowski.net>2006-06-02 00:57:31 +0200
commit2b0dd802ba1ff9b7001f5f9bd9b4d192a4aabf81 (patch)
treea2e39457e1f5ca3e673648aaa131614140a7da68 /drivers
parent1617406a763870a84ffe6bba3659f30f96ac4a61 (diff)
downloadblackbird-op-linux-2b0dd802ba1ff9b7001f5f9bd9b4d192a4aabf81.tar.gz
blackbird-op-linux-2b0dd802ba1ff9b7001f5f9bd9b4d192a4aabf81.zip
[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@dominikbrodowski.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/pcmcia/cm4000_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c
index 128b2632512d..eab5394da666 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) - \
OpenPOWER on IntegriCloud