Skip to content

Commit

Permalink
Merge tag 'driver-core-5.13-rc6' of git://git.kernel.org/pub/scm/linu…
Browse files Browse the repository at this point in the history
…x/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()
  • Loading branch information
torvalds committed Jun 12, 2021
2 parents 1dfa2e7 + f501b6a commit 87a7f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/debugfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ ssize_t debugfs_read_file_str(struct file *file, char __user *user_buf,

copy[copy_len] = '\n';

ret = simple_read_from_buffer(user_buf, count, ppos, copy, copy_len);
ret = simple_read_from_buffer(user_buf, count, ppos, copy, len);
kfree(copy);

return ret;
Expand Down

0 comments on commit 87a7f73

Please sign in to comment.