diff options
Diffstat (limited to 'drivers/isdn/mISDN')
-rw-r--r-- | drivers/isdn/mISDN/clock.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_audio.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_core.c | 3 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_pipeline.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/l1oip_codec.c | 6 | ||||
-rw-r--r-- | drivers/isdn/mISDN/socket.c | 1 |
6 files changed, 7 insertions, 6 deletions
diff --git a/drivers/isdn/mISDN/clock.c b/drivers/isdn/mISDN/clock.c index 1fa629b3b940..7418f2d811d8 100644 --- a/drivers/isdn/mISDN/clock.c +++ b/drivers/isdn/mISDN/clock.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/stddef.h> | 38 | #include <linux/stddef.h> |
39 | #include <linux/spinlock.h> | 39 | #include <linux/spinlock.h> |
40 | #include <linux/mISDNif.h> | 40 | #include <linux/mISDNif.h> |
41 | #include <linux/export.h> | ||
41 | #include "core.h" | 42 | #include "core.h" |
42 | 43 | ||
43 | static u_int *debug; | 44 | static u_int *debug; |
diff --git a/drivers/isdn/mISDN/dsp_audio.c b/drivers/isdn/mISDN/dsp_audio.c index 9c7c6451bf3d..b8f18bd09e43 100644 --- a/drivers/isdn/mISDN/dsp_audio.c +++ b/drivers/isdn/mISDN/dsp_audio.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
13 | #include <linux/mISDNif.h> | 13 | #include <linux/mISDNif.h> |
14 | #include <linux/mISDNdsp.h> | 14 | #include <linux/mISDNdsp.h> |
15 | #include <linux/export.h> | ||
15 | #include "core.h" | 16 | #include "core.h" |
16 | #include "dsp.h" | 17 | #include "dsp.h" |
17 | 18 | ||
diff --git a/drivers/isdn/mISDN/dsp_core.c b/drivers/isdn/mISDN/dsp_core.c index 2877291a9ed8..0c41553ce684 100644 --- a/drivers/isdn/mISDN/dsp_core.c +++ b/drivers/isdn/mISDN/dsp_core.c | |||
@@ -1052,12 +1052,11 @@ dspcreate(struct channel_req *crq) | |||
1052 | if (crq->protocol != ISDN_P_B_L2DSP | 1052 | if (crq->protocol != ISDN_P_B_L2DSP |
1053 | && crq->protocol != ISDN_P_B_L2DSPHDLC) | 1053 | && crq->protocol != ISDN_P_B_L2DSPHDLC) |
1054 | return -EPROTONOSUPPORT; | 1054 | return -EPROTONOSUPPORT; |
1055 | ndsp = vmalloc(sizeof(struct dsp)); | 1055 | ndsp = vzalloc(sizeof(struct dsp)); |
1056 | if (!ndsp) { | 1056 | if (!ndsp) { |
1057 | printk(KERN_ERR "%s: vmalloc struct dsp failed\n", __func__); | 1057 | printk(KERN_ERR "%s: vmalloc struct dsp failed\n", __func__); |
1058 | return -ENOMEM; | 1058 | return -ENOMEM; |
1059 | } | 1059 | } |
1060 | memset(ndsp, 0, sizeof(struct dsp)); | ||
1061 | if (dsp_debug & DEBUG_DSP_CTRL) | 1060 | if (dsp_debug & DEBUG_DSP_CTRL) |
1062 | printk(KERN_DEBUG "%s: creating new dsp instance\n", __func__); | 1061 | printk(KERN_DEBUG "%s: creating new dsp instance\n", __func__); |
1063 | 1062 | ||
diff --git a/drivers/isdn/mISDN/dsp_pipeline.c b/drivers/isdn/mISDN/dsp_pipeline.c index 621f31007095..b6c9a5889346 100644 --- a/drivers/isdn/mISDN/dsp_pipeline.c +++ b/drivers/isdn/mISDN/dsp_pipeline.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/string.h> | 30 | #include <linux/string.h> |
31 | #include <linux/mISDNif.h> | 31 | #include <linux/mISDNif.h> |
32 | #include <linux/mISDNdsp.h> | 32 | #include <linux/mISDNdsp.h> |
33 | #include <linux/export.h> | ||
33 | #include "dsp.h" | 34 | #include "dsp.h" |
34 | #include "dsp_hwec.h" | 35 | #include "dsp_hwec.h" |
35 | 36 | ||
diff --git a/drivers/isdn/mISDN/l1oip_codec.c b/drivers/isdn/mISDN/l1oip_codec.c index bbfd1b863ed3..5a89972624d8 100644 --- a/drivers/isdn/mISDN/l1oip_codec.c +++ b/drivers/isdn/mISDN/l1oip_codec.c | |||
@@ -330,14 +330,12 @@ l1oip_4bit_alloc(int ulaw) | |||
330 | return 0; | 330 | return 0; |
331 | 331 | ||
332 | /* alloc conversion tables */ | 332 | /* alloc conversion tables */ |
333 | table_com = vmalloc(65536); | 333 | table_com = vzalloc(65536); |
334 | table_dec = vmalloc(512); | 334 | table_dec = vzalloc(512); |
335 | if (!table_com || !table_dec) { | 335 | if (!table_com || !table_dec) { |
336 | l1oip_4bit_free(); | 336 | l1oip_4bit_free(); |
337 | return -ENOMEM; | 337 | return -ENOMEM; |
338 | } | 338 | } |
339 | memset(table_com, 0, 65536); | ||
340 | memset(table_dec, 0, 512); | ||
341 | /* generate compression table */ | 339 | /* generate compression table */ |
342 | i1 = 0; | 340 | i1 = 0; |
343 | while (i1 < 256) { | 341 | while (i1 < 256) { |
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c index 8e325227b4c0..738ea8dd0adf 100644 --- a/drivers/isdn/mISDN/socket.c +++ b/drivers/isdn/mISDN/socket.c | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include <linux/mISDNif.h> | 18 | #include <linux/mISDNif.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/export.h> | ||
20 | #include "core.h" | 21 | #include "core.h" |
21 | 22 | ||
22 | static u_int *debug; | 23 | static u_int *debug; |