diff options
Diffstat (limited to 'sound/core/oss/pcm_oss.c')
| -rw-r--r-- | sound/core/oss/pcm_oss.c | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c index 842c28b2ed5..c57f702d31a 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c @@ -1821,6 +1821,17 @@ static int snd_pcm_oss_open_file(struct file *file,  } +static int snd_task_name(struct task_struct *task, char *name, size_t size) +{ +	unsigned int idx; + +	snd_assert(task != NULL && name != NULL && size >= 2, return -EINVAL); +	for (idx = 0; idx < sizeof(task->comm) && idx + 1 < size; idx++) +		name[idx] = task->comm[idx]; +	name[idx] = '\0'; +	return 0; +} +  static int snd_pcm_oss_open(struct inode *inode, struct file *file)  {  	int minor = iminor(inode);  |