Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'kcsan.2024.09.14a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu

Pull kcsan update from Paul McKenney:
"Use min() to fix Coccinelle warning.

Courtesy of Thorsten Blum"

* tag 'kcsan.2024.09.14a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu:
kcsan: Use min() to fix Coccinelle warning

+1 -1
+1 -1
kernel/kcsan/debugfs.c
··· 225 225 { 226 226 char kbuf[KSYM_NAME_LEN]; 227 227 char *arg; 228 - int read_len = count < (sizeof(kbuf) - 1) ? count : (sizeof(kbuf) - 1); 228 + const size_t read_len = min(count, sizeof(kbuf) - 1); 229 229 230 230 if (copy_from_user(kbuf, buf, read_len)) 231 231 return -EFAULT;