Skip to content

Commit 87a7f73

Browse files
committed
Merge tag 'driver-core-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core fix from Greg KH: "A single debugfs fix for 5.13-rc6, fixing a bug in debugfs_read_file_str() that showed up in 5.13-rc1. It has been in linux-next for a full week with no reported problems" * tag 'driver-core-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: debugfs: Fix debugfs_read_file_str()
2 parents 1dfa2e7 + f501b6a commit 87a7f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/debugfs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ ssize_t debugfs_read_file_str(struct file *file, char __user *user_buf,
893893

894894
copy[copy_len] = '\n';
895895

896-
ret = simple_read_from_buffer(user_buf, count, ppos, copy, copy_len);
896+
ret = simple_read_from_buffer(user_buf, count, ppos, copy, len);
897897
kfree(copy);
898898

899899
return ret;

0 commit comments

Comments
 (0)