diff options
| -rw-r--r-- | sound/core/seq/instr/ainstr_gf1.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/instr/ainstr_iw.c | 6 | ||||
| -rw-r--r-- | sound/core/seq/oss/seq_oss_init.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/oss/seq_oss_midi.c | 6 | ||||
| -rw-r--r-- | sound/core/seq/oss/seq_oss_readq.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/oss/seq_oss_synth.c | 4 | ||||
| -rw-r--r-- | sound/core/seq/oss/seq_oss_timer.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/oss/seq_oss_writeq.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_clientmgr.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_device.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_dummy.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_fifo.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_instr.c | 4 | ||||
| -rw-r--r-- | sound/core/seq/seq_memory.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_midi.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_midi_event.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_ports.c | 4 | ||||
| -rw-r--r-- | sound/core/seq/seq_prioq.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_queue.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_system.c | 4 | ||||
| -rw-r--r-- | sound/core/seq/seq_timer.c | 2 | ||||
| -rw-r--r-- | sound/core/seq/seq_virmidi.c | 6 |
22 files changed, 32 insertions, 32 deletions
diff --git a/sound/core/seq/instr/ainstr_gf1.c b/sound/core/seq/instr/ainstr_gf1.c index 32e91c6b25fe..207c2c54bf1d 100644 --- a/sound/core/seq/instr/ainstr_gf1.c +++ b/sound/core/seq/instr/ainstr_gf1.c | |||
| @@ -61,7 +61,7 @@ static int snd_seq_gf1_copy_wave_from_stream(snd_gf1_ops_t *ops, | |||
| 61 | return -EFAULT; | 61 | return -EFAULT; |
| 62 | *data += sizeof(xp); | 62 | *data += sizeof(xp); |
| 63 | *len -= sizeof(xp); | 63 | *len -= sizeof(xp); |
| 64 | wp = kcalloc(1, sizeof(*wp), gfp_mask); | 64 | wp = kzalloc(sizeof(*wp), gfp_mask); |
| 65 | if (wp == NULL) | 65 | if (wp == NULL) |
| 66 | return -ENOMEM; | 66 | return -ENOMEM; |
| 67 | wp->share_id[0] = le32_to_cpu(xp.share_id[0]); | 67 | wp->share_id[0] = le32_to_cpu(xp.share_id[0]); |
diff --git a/sound/core/seq/instr/ainstr_iw.c b/sound/core/seq/instr/ainstr_iw.c index 2622b8679ca7..b3cee092b1a4 100644 --- a/sound/core/seq/instr/ainstr_iw.c +++ b/sound/core/seq/instr/ainstr_iw.c | |||
| @@ -92,7 +92,7 @@ static int snd_seq_iwffff_copy_env_from_stream(__u32 req_stype, | |||
| 92 | points_size = (le16_to_cpu(rx.nattack) + le16_to_cpu(rx.nrelease)) * 2 * sizeof(__u16); | 92 | points_size = (le16_to_cpu(rx.nattack) + le16_to_cpu(rx.nrelease)) * 2 * sizeof(__u16); |
| 93 | if (points_size > *len) | 93 | if (points_size > *len) |
| 94 | return -EINVAL; | 94 | return -EINVAL; |
| 95 | rp = kcalloc(1, sizeof(*rp) + points_size, gfp_mask); | 95 | rp = kzalloc(sizeof(*rp) + points_size, gfp_mask); |
| 96 | if (rp == NULL) | 96 | if (rp == NULL) |
| 97 | return -ENOMEM; | 97 | return -ENOMEM; |
| 98 | rp->nattack = le16_to_cpu(rx.nattack); | 98 | rp->nattack = le16_to_cpu(rx.nattack); |
| @@ -139,7 +139,7 @@ static int snd_seq_iwffff_copy_wave_from_stream(snd_iwffff_ops_t *ops, | |||
| 139 | return -EFAULT; | 139 | return -EFAULT; |
| 140 | *data += sizeof(xp); | 140 | *data += sizeof(xp); |
| 141 | *len -= sizeof(xp); | 141 | *len -= sizeof(xp); |
| 142 | wp = kcalloc(1, sizeof(*wp), gfp_mask); | 142 | wp = kzalloc(sizeof(*wp), gfp_mask); |
| 143 | if (wp == NULL) | 143 | if (wp == NULL) |
| 144 | return -ENOMEM; | 144 | return -ENOMEM; |
| 145 | wp->share_id[0] = le32_to_cpu(xp.share_id[0]); | 145 | wp->share_id[0] = le32_to_cpu(xp.share_id[0]); |
| @@ -273,7 +273,7 @@ static int snd_seq_iwffff_put(void *private_data, snd_seq_kinstr_t *instr, | |||
| 273 | snd_seq_iwffff_instr_free(ops, ip, atomic); | 273 | snd_seq_iwffff_instr_free(ops, ip, atomic); |
| 274 | return -EINVAL; | 274 | return -EINVAL; |
| 275 | } | 275 | } |
| 276 | lp = kcalloc(1, sizeof(*lp), gfp_mask); | 276 | lp = kzalloc(sizeof(*lp), gfp_mask); |
| 277 | if (lp == NULL) { | 277 | if (lp == NULL) { |
| 278 | snd_seq_iwffff_instr_free(ops, ip, atomic); | 278 | snd_seq_iwffff_instr_free(ops, ip, atomic); |
| 279 | return -ENOMEM; | 279 | return -ENOMEM; |
diff --git a/sound/core/seq/oss/seq_oss_init.c b/sound/core/seq/oss/seq_oss_init.c index bac4b4f1a94e..1ab1cf8158c8 100644 --- a/sound/core/seq/oss/seq_oss_init.c +++ b/sound/core/seq/oss/seq_oss_init.c | |||
| @@ -193,7 +193,7 @@ snd_seq_oss_open(struct file *file, int level) | |||
| 193 | int i, rc; | 193 | int i, rc; |
| 194 | seq_oss_devinfo_t *dp; | 194 | seq_oss_devinfo_t *dp; |
| 195 | 195 | ||
| 196 | if ((dp = kcalloc(1, sizeof(*dp), GFP_KERNEL)) == NULL) { | 196 | if ((dp = kzalloc(sizeof(*dp), GFP_KERNEL)) == NULL) { |
| 197 | snd_printk(KERN_ERR "can't malloc device info\n"); | 197 | snd_printk(KERN_ERR "can't malloc device info\n"); |
| 198 | return -ENOMEM; | 198 | return -ENOMEM; |
| 199 | } | 199 | } |
diff --git a/sound/core/seq/oss/seq_oss_midi.c b/sound/core/seq/oss/seq_oss_midi.c index 9aece6c65dbc..f0e95c8f2eef 100644 --- a/sound/core/seq/oss/seq_oss_midi.c +++ b/sound/core/seq/oss/seq_oss_midi.c | |||
| @@ -76,8 +76,8 @@ snd_seq_oss_midi_lookup_ports(int client) | |||
| 76 | snd_seq_client_info_t *clinfo; | 76 | snd_seq_client_info_t *clinfo; |
| 77 | snd_seq_port_info_t *pinfo; | 77 | snd_seq_port_info_t *pinfo; |
| 78 | 78 | ||
| 79 | clinfo = kcalloc(1, sizeof(*clinfo), GFP_KERNEL); | 79 | clinfo = kzalloc(sizeof(*clinfo), GFP_KERNEL); |
| 80 | pinfo = kcalloc(1, sizeof(*pinfo), GFP_KERNEL); | 80 | pinfo = kzalloc(sizeof(*pinfo), GFP_KERNEL); |
| 81 | if (! clinfo || ! pinfo) { | 81 | if (! clinfo || ! pinfo) { |
| 82 | kfree(clinfo); | 82 | kfree(clinfo); |
| 83 | kfree(pinfo); | 83 | kfree(pinfo); |
| @@ -172,7 +172,7 @@ snd_seq_oss_midi_check_new_port(snd_seq_port_info_t *pinfo) | |||
| 172 | /* | 172 | /* |
| 173 | * allocate midi info record | 173 | * allocate midi info record |
| 174 | */ | 174 | */ |
| 175 | if ((mdev = kcalloc(1, sizeof(*mdev), GFP_KERNEL)) == NULL) { | 175 | if ((mdev = kzalloc(sizeof(*mdev), GFP_KERNEL)) == NULL) { |
| 176 | snd_printk(KERN_ERR "can't malloc midi info\n"); | 176 | snd_printk(KERN_ERR "can't malloc midi info\n"); |
| 177 | return -ENOMEM; | 177 | return -ENOMEM; |
| 178 | } | 178 | } |
diff --git a/sound/core/seq/oss/seq_oss_readq.c b/sound/core/seq/oss/seq_oss_readq.c index 0a6f2a64f692..55571e15cd38 100644 --- a/sound/core/seq/oss/seq_oss_readq.c +++ b/sound/core/seq/oss/seq_oss_readq.c | |||
| @@ -46,7 +46,7 @@ snd_seq_oss_readq_new(seq_oss_devinfo_t *dp, int maxlen) | |||
| 46 | { | 46 | { |
| 47 | seq_oss_readq_t *q; | 47 | seq_oss_readq_t *q; |
| 48 | 48 | ||
| 49 | if ((q = kcalloc(1, sizeof(*q), GFP_KERNEL)) == NULL) { | 49 | if ((q = kzalloc(sizeof(*q), GFP_KERNEL)) == NULL) { |
| 50 | snd_printk(KERN_ERR "can't malloc read queue\n"); | 50 | snd_printk(KERN_ERR "can't malloc read queue\n"); |
| 51 | return NULL; | 51 | return NULL; |
| 52 | } | 52 | } |
diff --git a/sound/core/seq/oss/seq_oss_synth.c b/sound/core/seq/oss/seq_oss_synth.c index 1a7736cbf3a4..8257fce2ca1b 100644 --- a/sound/core/seq/oss/seq_oss_synth.c +++ b/sound/core/seq/oss/seq_oss_synth.c | |||
| @@ -103,7 +103,7 @@ snd_seq_oss_synth_register(snd_seq_device_t *dev) | |||
| 103 | snd_seq_oss_reg_t *reg = SNDRV_SEQ_DEVICE_ARGPTR(dev); | 103 | snd_seq_oss_reg_t *reg = SNDRV_SEQ_DEVICE_ARGPTR(dev); |
| 104 | unsigned long flags; | 104 | unsigned long flags; |
| 105 | 105 | ||
| 106 | if ((rec = kcalloc(1, sizeof(*rec), GFP_KERNEL)) == NULL) { | 106 | if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) { |
| 107 | snd_printk(KERN_ERR "can't malloc synth info\n"); | 107 | snd_printk(KERN_ERR "can't malloc synth info\n"); |
| 108 | return -ENOMEM; | 108 | return -ENOMEM; |
| 109 | } | 109 | } |
| @@ -499,7 +499,7 @@ snd_seq_oss_synth_sysex(seq_oss_devinfo_t *dp, int dev, unsigned char *buf, snd_ | |||
| 499 | 499 | ||
| 500 | sysex = dp->synths[dev].sysex; | 500 | sysex = dp->synths[dev].sysex; |
| 501 | if (sysex == NULL) { | 501 | if (sysex == NULL) { |
| 502 | sysex = kcalloc(1, sizeof(*sysex), GFP_KERNEL); | 502 | sysex = kzalloc(sizeof(*sysex), GFP_KERNEL); |
| 503 | if (sysex == NULL) | 503 | if (sysex == NULL) |
| 504 | return -ENOMEM; | 504 | return -ENOMEM; |
| 505 | dp->synths[dev].sysex = sysex; | 505 | dp->synths[dev].sysex = sysex; |
diff --git a/sound/core/seq/oss/seq_oss_timer.c b/sound/core/seq/oss/seq_oss_timer.c index 42ca9493fa60..64d594b3170f 100644 --- a/sound/core/seq/oss/seq_oss_timer.c +++ b/sound/core/seq/oss/seq_oss_timer.c | |||
| @@ -46,7 +46,7 @@ snd_seq_oss_timer_new(seq_oss_devinfo_t *dp) | |||
| 46 | { | 46 | { |
| 47 | seq_oss_timer_t *rec; | 47 | seq_oss_timer_t *rec; |
| 48 | 48 | ||
| 49 | rec = kcalloc(1, sizeof(*rec), GFP_KERNEL); | 49 | rec = kzalloc(sizeof(*rec), GFP_KERNEL); |
| 50 | if (rec == NULL) | 50 | if (rec == NULL) |
| 51 | return NULL; | 51 | return NULL; |
| 52 | 52 | ||
diff --git a/sound/core/seq/oss/seq_oss_writeq.c b/sound/core/seq/oss/seq_oss_writeq.c index 87f85f7ee814..b20378024547 100644 --- a/sound/core/seq/oss/seq_oss_writeq.c +++ b/sound/core/seq/oss/seq_oss_writeq.c | |||
| @@ -38,7 +38,7 @@ snd_seq_oss_writeq_new(seq_oss_devinfo_t *dp, int maxlen) | |||
| 38 | seq_oss_writeq_t *q; | 38 | seq_oss_writeq_t *q; |
| 39 | snd_seq_client_pool_t pool; | 39 | snd_seq_client_pool_t pool; |
| 40 | 40 | ||
| 41 | if ((q = kcalloc(1, sizeof(*q), GFP_KERNEL)) == NULL) | 41 | if ((q = kzalloc(sizeof(*q), GFP_KERNEL)) == NULL) |
| 42 | return NULL; | 42 | return NULL; |
| 43 | q->dp = dp; | 43 | q->dp = dp; |
| 44 | q->maxlen = maxlen; | 44 | q->maxlen = maxlen; |
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c index bd106625a783..a886db94b1fa 100644 --- a/sound/core/seq/seq_clientmgr.c +++ b/sound/core/seq/seq_clientmgr.c | |||
| @@ -203,7 +203,7 @@ static client_t *seq_create_client1(int client_index, int poolsize) | |||
| 203 | client_t *client; | 203 | client_t *client; |
| 204 | 204 | ||
| 205 | /* init client data */ | 205 | /* init client data */ |
| 206 | client = kcalloc(1, sizeof(*client), GFP_KERNEL); | 206 | client = kzalloc(sizeof(*client), GFP_KERNEL); |
| 207 | if (client == NULL) | 207 | if (client == NULL) |
| 208 | return NULL; | 208 | return NULL; |
| 209 | client->pool = snd_seq_pool_new(poolsize); | 209 | client->pool = snd_seq_pool_new(poolsize); |
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c index 4d80f39612e8..252b52731003 100644 --- a/sound/core/seq/seq_device.c +++ b/sound/core/seq/seq_device.c | |||
| @@ -200,7 +200,7 @@ int snd_seq_device_new(snd_card_t *card, int device, char *id, int argsize, | |||
| 200 | if (ops == NULL) | 200 | if (ops == NULL) |
| 201 | return -ENOMEM; | 201 | return -ENOMEM; |
| 202 | 202 | ||
| 203 | dev = kcalloc(1, sizeof(*dev)*2 + argsize, GFP_KERNEL); | 203 | dev = kzalloc(sizeof(*dev)*2 + argsize, GFP_KERNEL); |
| 204 | if (dev == NULL) { | 204 | if (dev == NULL) { |
| 205 | unlock_driver(ops); | 205 | unlock_driver(ops); |
| 206 | return -ENOMEM; | 206 | return -ENOMEM; |
diff --git a/sound/core/seq/seq_dummy.c b/sound/core/seq/seq_dummy.c index ea945a5d2a0b..5dd0e6a19e50 100644 --- a/sound/core/seq/seq_dummy.c +++ b/sound/core/seq/seq_dummy.c | |||
| @@ -153,7 +153,7 @@ create_port(int idx, int type) | |||
| 153 | snd_seq_port_callback_t pcb; | 153 | snd_seq_port_callback_t pcb; |
| 154 | snd_seq_dummy_port_t *rec; | 154 | snd_seq_dummy_port_t *rec; |
| 155 | 155 | ||
| 156 | if ((rec = kcalloc(1, sizeof(*rec), GFP_KERNEL)) == NULL) | 156 | if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) |
| 157 | return NULL; | 157 | return NULL; |
| 158 | 158 | ||
| 159 | rec->client = my_client; | 159 | rec->client = my_client; |
diff --git a/sound/core/seq/seq_fifo.c b/sound/core/seq/seq_fifo.c index 3b7647ca7ad9..4767cfdc361f 100644 --- a/sound/core/seq/seq_fifo.c +++ b/sound/core/seq/seq_fifo.c | |||
| @@ -33,7 +33,7 @@ fifo_t *snd_seq_fifo_new(int poolsize) | |||
| 33 | { | 33 | { |
| 34 | fifo_t *f; | 34 | fifo_t *f; |
| 35 | 35 | ||
| 36 | f = kcalloc(1, sizeof(*f), GFP_KERNEL); | 36 | f = kzalloc(sizeof(*f), GFP_KERNEL); |
| 37 | if (f == NULL) { | 37 | if (f == NULL) { |
| 38 | snd_printd("malloc failed for snd_seq_fifo_new() \n"); | 38 | snd_printd("malloc failed for snd_seq_fifo_new() \n"); |
| 39 | return NULL; | 39 | return NULL; |
diff --git a/sound/core/seq/seq_instr.c b/sound/core/seq/seq_instr.c index 5b40ea2ba8f4..019d43a462d7 100644 --- a/sound/core/seq/seq_instr.c +++ b/sound/core/seq/seq_instr.c | |||
| @@ -53,7 +53,7 @@ static snd_seq_kinstr_t *snd_seq_instr_new(int add_len, int atomic) | |||
| 53 | { | 53 | { |
| 54 | snd_seq_kinstr_t *instr; | 54 | snd_seq_kinstr_t *instr; |
| 55 | 55 | ||
| 56 | instr = kcalloc(1, sizeof(snd_seq_kinstr_t) + add_len, atomic ? GFP_ATOMIC : GFP_KERNEL); | 56 | instr = kzalloc(sizeof(snd_seq_kinstr_t) + add_len, atomic ? GFP_ATOMIC : GFP_KERNEL); |
| 57 | if (instr == NULL) | 57 | if (instr == NULL) |
| 58 | return NULL; | 58 | return NULL; |
| 59 | instr->add_len = add_len; | 59 | instr->add_len = add_len; |
| @@ -77,7 +77,7 @@ snd_seq_kinstr_list_t *snd_seq_instr_list_new(void) | |||
| 77 | { | 77 | { |
| 78 | snd_seq_kinstr_list_t *list; | 78 | snd_seq_kinstr_list_t *list; |
| 79 | 79 | ||
| 80 | list = kcalloc(1, sizeof(snd_seq_kinstr_list_t), GFP_KERNEL); | 80 | list = kzalloc(sizeof(snd_seq_kinstr_list_t), GFP_KERNEL); |
| 81 | if (list == NULL) | 81 | if (list == NULL) |
| 82 | return NULL; | 82 | return NULL; |
| 83 | spin_lock_init(&list->lock); | 83 | spin_lock_init(&list->lock); |
diff --git a/sound/core/seq/seq_memory.c b/sound/core/seq/seq_memory.c index 03acb2d519ba..d4d7d326c4b1 100644 --- a/sound/core/seq/seq_memory.c +++ b/sound/core/seq/seq_memory.c | |||
| @@ -452,7 +452,7 @@ pool_t *snd_seq_pool_new(int poolsize) | |||
| 452 | pool_t *pool; | 452 | pool_t *pool; |
| 453 | 453 | ||
| 454 | /* create pool block */ | 454 | /* create pool block */ |
| 455 | pool = kcalloc(1, sizeof(*pool), GFP_KERNEL); | 455 | pool = kzalloc(sizeof(*pool), GFP_KERNEL); |
| 456 | if (pool == NULL) { | 456 | if (pool == NULL) { |
| 457 | snd_printd("seq: malloc failed for pool\n"); | 457 | snd_printd("seq: malloc failed for pool\n"); |
| 458 | return NULL; | 458 | return NULL; |
diff --git a/sound/core/seq/seq_midi.c b/sound/core/seq/seq_midi.c index 4374829ea770..b4674ae3bc30 100644 --- a/sound/core/seq/seq_midi.c +++ b/sound/core/seq/seq_midi.c | |||
| @@ -322,7 +322,7 @@ snd_seq_midisynth_register_port(snd_seq_device_t *dev) | |||
| 322 | client = synths[card->number]; | 322 | client = synths[card->number]; |
| 323 | if (client == NULL) { | 323 | if (client == NULL) { |
| 324 | newclient = 1; | 324 | newclient = 1; |
| 325 | client = kcalloc(1, sizeof(*client), GFP_KERNEL); | 325 | client = kzalloc(sizeof(*client), GFP_KERNEL); |
| 326 | if (client == NULL) { | 326 | if (client == NULL) { |
| 327 | up(®ister_mutex); | 327 | up(®ister_mutex); |
| 328 | kfree(info); | 328 | kfree(info); |
diff --git a/sound/core/seq/seq_midi_event.c b/sound/core/seq/seq_midi_event.c index 603b63716db6..2dc1aecfb426 100644 --- a/sound/core/seq/seq_midi_event.c +++ b/sound/core/seq/seq_midi_event.c | |||
| @@ -118,7 +118,7 @@ int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev) | |||
| 118 | snd_midi_event_t *dev; | 118 | snd_midi_event_t *dev; |
| 119 | 119 | ||
| 120 | *rdev = NULL; | 120 | *rdev = NULL; |
| 121 | dev = kcalloc(1, sizeof(*dev), GFP_KERNEL); | 121 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
| 122 | if (dev == NULL) | 122 | if (dev == NULL) |
| 123 | return -ENOMEM; | 123 | return -ENOMEM; |
| 124 | if (bufsize > 0) { | 124 | if (bufsize > 0) { |
diff --git a/sound/core/seq/seq_ports.c b/sound/core/seq/seq_ports.c index b976951fc100..57ec31df0d15 100644 --- a/sound/core/seq/seq_ports.c +++ b/sound/core/seq/seq_ports.c | |||
| @@ -141,7 +141,7 @@ client_port_t *snd_seq_create_port(client_t *client, int port) | |||
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | /* create a new port */ | 143 | /* create a new port */ |
| 144 | new_port = kcalloc(1, sizeof(*new_port), GFP_KERNEL); | 144 | new_port = kzalloc(sizeof(*new_port), GFP_KERNEL); |
| 145 | if (! new_port) { | 145 | if (! new_port) { |
| 146 | snd_printd("malloc failed for registering client port\n"); | 146 | snd_printd("malloc failed for registering client port\n"); |
| 147 | return NULL; /* failure, out of memory */ | 147 | return NULL; /* failure, out of memory */ |
| @@ -488,7 +488,7 @@ int snd_seq_port_connect(client_t *connector, | |||
| 488 | unsigned long flags; | 488 | unsigned long flags; |
| 489 | int exclusive; | 489 | int exclusive; |
| 490 | 490 | ||
| 491 | subs = kcalloc(1, sizeof(*subs), GFP_KERNEL); | 491 | subs = kzalloc(sizeof(*subs), GFP_KERNEL); |
| 492 | if (! subs) | 492 | if (! subs) |
| 493 | return -ENOMEM; | 493 | return -ENOMEM; |
| 494 | 494 | ||
diff --git a/sound/core/seq/seq_prioq.c b/sound/core/seq/seq_prioq.c index a519732ed833..cd641bca9945 100644 --- a/sound/core/seq/seq_prioq.c +++ b/sound/core/seq/seq_prioq.c | |||
| @@ -59,7 +59,7 @@ prioq_t *snd_seq_prioq_new(void) | |||
| 59 | { | 59 | { |
| 60 | prioq_t *f; | 60 | prioq_t *f; |
| 61 | 61 | ||
| 62 | f = kcalloc(1, sizeof(*f), GFP_KERNEL); | 62 | f = kzalloc(sizeof(*f), GFP_KERNEL); |
| 63 | if (f == NULL) { | 63 | if (f == NULL) { |
| 64 | snd_printd("oops: malloc failed for snd_seq_prioq_new()\n"); | 64 | snd_printd("oops: malloc failed for snd_seq_prioq_new()\n"); |
| 65 | return NULL; | 65 | return NULL; |
diff --git a/sound/core/seq/seq_queue.c b/sound/core/seq/seq_queue.c index 98de2e711fde..5f5c3cb37cbf 100644 --- a/sound/core/seq/seq_queue.c +++ b/sound/core/seq/seq_queue.c | |||
| @@ -111,7 +111,7 @@ static queue_t *queue_new(int owner, int locked) | |||
| 111 | { | 111 | { |
| 112 | queue_t *q; | 112 | queue_t *q; |
| 113 | 113 | ||
| 114 | q = kcalloc(1, sizeof(*q), GFP_KERNEL); | 114 | q = kzalloc(sizeof(*q), GFP_KERNEL); |
| 115 | if (q == NULL) { | 115 | if (q == NULL) { |
| 116 | snd_printd("malloc failed for snd_seq_queue_new()\n"); | 116 | snd_printd("malloc failed for snd_seq_queue_new()\n"); |
| 117 | return NULL; | 117 | return NULL; |
diff --git a/sound/core/seq/seq_system.c b/sound/core/seq/seq_system.c index e8f0a6683d50..0d9eff85ab88 100644 --- a/sound/core/seq/seq_system.c +++ b/sound/core/seq/seq_system.c | |||
| @@ -126,8 +126,8 @@ int __init snd_seq_system_client_init(void) | |||
| 126 | snd_seq_client_info_t *inf; | 126 | snd_seq_client_info_t *inf; |
| 127 | snd_seq_port_info_t *port; | 127 | snd_seq_port_info_t *port; |
| 128 | 128 | ||
| 129 | inf = kcalloc(1, sizeof(*inf), GFP_KERNEL); | 129 | inf = kzalloc(sizeof(*inf), GFP_KERNEL); |
| 130 | port = kcalloc(1, sizeof(*port), GFP_KERNEL); | 130 | port = kzalloc(sizeof(*port), GFP_KERNEL); |
| 131 | if (! inf || ! port) { | 131 | if (! inf || ! port) { |
| 132 | kfree(inf); | 132 | kfree(inf); |
| 133 | kfree(port); | 133 | kfree(port); |
diff --git a/sound/core/seq/seq_timer.c b/sound/core/seq/seq_timer.c index a7f76fc95280..b57a3c07ff6f 100644 --- a/sound/core/seq/seq_timer.c +++ b/sound/core/seq/seq_timer.c | |||
| @@ -60,7 +60,7 @@ seq_timer_t *snd_seq_timer_new(void) | |||
| 60 | { | 60 | { |
| 61 | seq_timer_t *tmr; | 61 | seq_timer_t *tmr; |
| 62 | 62 | ||
| 63 | tmr = kcalloc(1, sizeof(*tmr), GFP_KERNEL); | 63 | tmr = kzalloc(sizeof(*tmr), GFP_KERNEL); |
| 64 | if (tmr == NULL) { | 64 | if (tmr == NULL) { |
| 65 | snd_printd("malloc failed for snd_seq_timer_new() \n"); | 65 | snd_printd("malloc failed for snd_seq_timer_new() \n"); |
| 66 | return NULL; | 66 | return NULL; |
diff --git a/sound/core/seq/seq_virmidi.c b/sound/core/seq/seq_virmidi.c index a66484b5cf0e..e4f512aa7426 100644 --- a/sound/core/seq/seq_virmidi.c +++ b/sound/core/seq/seq_virmidi.c | |||
| @@ -205,7 +205,7 @@ static int snd_virmidi_input_open(snd_rawmidi_substream_t * substream) | |||
| 205 | snd_virmidi_t *vmidi; | 205 | snd_virmidi_t *vmidi; |
| 206 | unsigned long flags; | 206 | unsigned long flags; |
| 207 | 207 | ||
| 208 | vmidi = kcalloc(1, sizeof(*vmidi), GFP_KERNEL); | 208 | vmidi = kzalloc(sizeof(*vmidi), GFP_KERNEL); |
| 209 | if (vmidi == NULL) | 209 | if (vmidi == NULL) |
| 210 | return -ENOMEM; | 210 | return -ENOMEM; |
| 211 | vmidi->substream = substream; | 211 | vmidi->substream = substream; |
| @@ -233,7 +233,7 @@ static int snd_virmidi_output_open(snd_rawmidi_substream_t * substream) | |||
| 233 | snd_rawmidi_runtime_t *runtime = substream->runtime; | 233 | snd_rawmidi_runtime_t *runtime = substream->runtime; |
| 234 | snd_virmidi_t *vmidi; | 234 | snd_virmidi_t *vmidi; |
| 235 | 235 | ||
| 236 | vmidi = kcalloc(1, sizeof(*vmidi), GFP_KERNEL); | 236 | vmidi = kzalloc(sizeof(*vmidi), GFP_KERNEL); |
| 237 | if (vmidi == NULL) | 237 | if (vmidi == NULL) |
| 238 | return -ENOMEM; | 238 | return -ENOMEM; |
| 239 | vmidi->substream = substream; | 239 | vmidi->substream = substream; |
| @@ -508,7 +508,7 @@ int snd_virmidi_new(snd_card_t *card, int device, snd_rawmidi_t **rrmidi) | |||
| 508 | &rmidi)) < 0) | 508 | &rmidi)) < 0) |
| 509 | return err; | 509 | return err; |
| 510 | strcpy(rmidi->name, rmidi->id); | 510 | strcpy(rmidi->name, rmidi->id); |
| 511 | rdev = kcalloc(1, sizeof(*rdev), GFP_KERNEL); | 511 | rdev = kzalloc(sizeof(*rdev), GFP_KERNEL); |
| 512 | if (rdev == NULL) { | 512 | if (rdev == NULL) { |
| 513 | snd_device_free(card, rmidi); | 513 | snd_device_free(card, rmidi); |
| 514 | return -ENOMEM; | 514 | return -ENOMEM; |
