info.c (aee0c612b12f57f4923f6649fa6fcba618182261) info.c (d9dda78bad879595d8c4220a067fc029d6484a16)
1/*
2 * Information interface for ALSA driver
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 *
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 296 unchanged lines hidden (view full) ---

305 return size;
306}
307
308static int snd_info_entry_open(struct inode *inode, struct file *file)
309{
310 struct snd_info_entry *entry;
311 struct snd_info_private_data *data;
312 struct snd_info_buffer *buffer;
1/*
2 * Information interface for ALSA driver
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 *
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 296 unchanged lines hidden (view full) ---

305 return size;
306}
307
308static int snd_info_entry_open(struct inode *inode, struct file *file)
309{
310 struct snd_info_entry *entry;
311 struct snd_info_private_data *data;
312 struct snd_info_buffer *buffer;
313 struct proc_dir_entry *p;
314 int mode, err;
315
316 mutex_lock(&info_mutex);
313 int mode, err;
314
315 mutex_lock(&info_mutex);
317 p = PDE(inode);
318 entry = p == NULL ? NULL : (struct snd_info_entry *)p->data;
316 entry = PDE_DATA(inode);
319 if (entry == NULL || ! entry->p) {
320 mutex_unlock(&info_mutex);
321 return -ENODEV;
322 }
323 if (!try_module_get(entry->module)) {
324 err = -EFAULT;
325 goto __error1;
326 }

--- 695 unchanged lines hidden ---
317 if (entry == NULL || ! entry->p) {
318 mutex_unlock(&info_mutex);
319 return -ENODEV;
320 }
321 if (!try_module_get(entry->module)) {
322 err = -EFAULT;
323 goto __error1;
324 }

--- 695 unchanged lines hidden ---