]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/core/info.c
ALSA: core: Follow standard EXPORT_SYMBOL() declarations
[karo-tx-linux.git] / sound / core / info.c
index 8ab72e0f593292ac91aea0b06b70d89fc084bd3c..bcf6a48cc70d3b82d78b1b7a944e1bd4e0b1dd5d 100644 (file)
@@ -344,12 +344,12 @@ static ssize_t snd_info_text_entry_write(struct file *file,
                }
        }
        if (next > buf->len) {
-               char *nbuf = krealloc(buf->buffer, PAGE_ALIGN(next),
-                                     GFP_KERNEL | __GFP_ZERO);
+               char *nbuf = kvzalloc(PAGE_ALIGN(next), GFP_KERNEL);
                if (!nbuf) {
                        err = -ENOMEM;
                        goto error;
                }
+               kvfree(buf->buffer);
                buf->buffer = nbuf;
                buf->len = PAGE_ALIGN(next);
        }
@@ -427,7 +427,7 @@ static int snd_info_text_entry_release(struct inode *inode, struct file *file)
        single_release(inode, file);
        kfree(data->rbuffer);
        if (data->wbuffer) {
-               kfree(data->wbuffer->buffer);
+               kvfree(data->wbuffer->buffer);
                kfree(data->wbuffer);
        }
 
@@ -652,7 +652,6 @@ int snd_info_get_line(struct snd_info_buffer *buffer, char *line, int len)
        *line = '\0';
        return 0;
 }
-
 EXPORT_SYMBOL(snd_info_get_line);
 
 /**
@@ -690,7 +689,6 @@ const char *snd_info_get_str(char *dest, const char *src, int len)
                src++;
        return src;
 }
-
 EXPORT_SYMBOL(snd_info_get_str);
 
 /*
@@ -748,7 +746,6 @@ struct snd_info_entry *snd_info_create_module_entry(struct module * module,
                entry->module = module;
        return entry;
 }
-
 EXPORT_SYMBOL(snd_info_create_module_entry);
 
 /**
@@ -772,7 +769,6 @@ struct snd_info_entry *snd_info_create_card_entry(struct snd_card *card,
        }
        return entry;
 }
-
 EXPORT_SYMBOL(snd_info_create_card_entry);
 
 static void snd_info_disconnect(struct snd_info_entry *entry)
@@ -815,7 +811,6 @@ void snd_info_free_entry(struct snd_info_entry * entry)
                entry->private_free(entry);
        kfree(entry);
 }
-
 EXPORT_SYMBOL(snd_info_free_entry);
 
 /**
@@ -858,7 +853,6 @@ int snd_info_register(struct snd_info_entry * entry)
        mutex_unlock(&info_mutex);
        return 0;
 }
-
 EXPORT_SYMBOL(snd_info_register);
 
 /*