提交 2b0dd802 编写于 作者: D 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: NDominik Brodowski <linux@dominikbrodowski.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册