5 Jan
2021
5 Jan
'21
12:09 p.m.
On 1/4/21 11:20 PM, Jaroslav Kysela wrote:
Dne 28. 12. 20 v 9:00 Hui Wang napsal(a):
+static ssize_t sw_inject_enable_write(struct file *file,
const char __user *from, size_t count, loff_t *ppos)
+{
- struct snd_jack_kctl *jack_kctl = file->private_data;
- char *buf;
- int ret, err;
- unsigned long enable;
- buf = kzalloc(count, GFP_KERNEL);
Debugfs fops allocations should use kvzalloc() / kvfree().
OK, got it. Will change to use them in the next version.
Thanks.
Jaroslav