]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched/debug: Use char * instead of char (*)[]
authorPeter Zijlstra <peterz@infradead.org>
Mon, 11 May 2026 11:31:05 +0000 (13:31 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 26 May 2026 11:53:12 +0000 (13:53 +0200)
Some of the fancy AI robots are getting 'upset'.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260511120627.065013766@infradead.org
kernel/sched/debug.c

index ed3a0d65da0ca57476895e30d0809d43e911344b..af13a896858c5ea324ed7fa5135f027317506e95 100644 (file)
@@ -136,7 +136,7 @@ sched_feat_write(struct file *filp, const char __user *ubuf,
        if (cnt > 63)
                cnt = 63;
 
-       if (copy_from_user(&buf, ubuf, cnt))
+       if (copy_from_user(buf, ubuf, cnt))
                return -EFAULT;
 
        buf[cnt] = 0;
@@ -263,7 +263,7 @@ static ssize_t sched_dynamic_write(struct file *filp, const char __user *ubuf,
        if (cnt > 15)
                cnt = 15;
 
-       if (copy_from_user(&buf, ubuf, cnt))
+       if (copy_from_user(buf, ubuf, cnt))
                return -EFAULT;
 
        buf[cnt] = 0;