From b31cd5a2e4a41e8ad25cc15254c13058d28030c2 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Fri, 20 Dec 2013 12:00:01 -0600 Subject: [PATCH] wctdm24xxp: Reset the members of struct fxo on init. Signed-off-by: Shaun Ruffell --- drivers/dahdi/wctdm24xxp/base.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 5e35fde..147390f 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -3084,6 +3084,8 @@ static int set_vmwi(struct wctdm *wc, struct wctdm_module *const mod) unsigned long flags; long newjiffies; + memset(&mod->mod.fxo, 0, sizeof(mod->mod.fxo)); + #if 0 /* TODO */ if ((wc->mods[card & 0xfc].type == QRV) || (wc->mods[card & 0xfc].type == BRI)) -- 1.8.5.1