[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>
This commit is contained in:
Dominik Brodowski 2006-06-01 18:29:20 +02:00
parent 1617406a76
commit 2b0dd802ba
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ struct cm4000_dev {
#define ZERO_DEV(dev) \ #define ZERO_DEV(dev) \
memset(&dev->atr_csum,0, \ memset(&dev->atr_csum,0, \
sizeof(struct cm4000_dev) - \ sizeof(struct cm4000_dev) - \
/*link*/ sizeof(struct pcmcia_device) - \ /*link*/ sizeof(struct pcmcia_device *) - \
/*node*/ sizeof(dev_node_t) - \ /*node*/ sizeof(dev_node_t) - \
/*atr*/ MAX_ATR*sizeof(char) - \ /*atr*/ MAX_ATR*sizeof(char) - \
/*rbuf*/ 512*sizeof(char) - \ /*rbuf*/ 512*sizeof(char) - \