mixer_us16x08.c (bc351f07260533cc1b3987339551decd00ddd52e) | mixer_us16x08.c (75b1a8f9d62e50f05d0e4e9f3c8bcde32527ffc1) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Tascam US-16x08 ALSA driver 4 * 5 * Copyright (c) 2016 by Detlef Urban (onkel@paraair.de) 6 */ 7 8#include <linux/slab.h> --- 1062 unchanged lines hidden (view full) --- 1071 return -ENOMEM; 1072 } 1073 1074 if (do_private_free) 1075 kctl->private_free = elem_private_free; 1076 else 1077 kctl->private_free = snd_usb_mixer_elem_free; 1078 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Tascam US-16x08 ALSA driver 4 * 5 * Copyright (c) 2016 by Detlef Urban (onkel@paraair.de) 6 */ 7 8#include <linux/slab.h> --- 1062 unchanged lines hidden (view full) --- 1071 return -ENOMEM; 1072 } 1073 1074 if (do_private_free) 1075 kctl->private_free = elem_private_free; 1076 else 1077 kctl->private_free = snd_usb_mixer_elem_free; 1078 |
1079 strlcpy(kctl->id.name, name, sizeof(kctl->id.name)); | 1079 strscpy(kctl->id.name, name, sizeof(kctl->id.name)); |
1080 1081 err = snd_usb_mixer_add_control(&elem->head, kctl); 1082 if (err < 0) 1083 return err; 1084 1085 if (elem_ret) 1086 *elem_ret = elem; 1087 --- 327 unchanged lines hidden --- | 1080 1081 err = snd_usb_mixer_add_control(&elem->head, kctl); 1082 if (err < 0) 1083 return err; 1084 1085 if (elem_ret) 1086 *elem_ret = elem; 1087 --- 327 unchanged lines hidden --- |