Commit 2b0dd802 authored by Dominik Brodowski's avatar Dominik Brodowski

[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: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 1617406a
......@@ -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) - \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment