diff options
| author | Filipe Manana <fdmanana@suse.com> | 2018-12-14 22:50:17 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2019-02-25 16:13:15 +0300 |
| commit | 06fe39ab15a6a47d4979460fcc17d33b1d72ccf9 (patch) | |
| tree | 794a4d4ec05e118851d6eee5dff6b743deb96e14 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | bc9a8bf79cb049eb3af26d53e6ca96dd6a881358 (diff) | |
| download | linux-06fe39ab15a6a47d4979460fcc17d33b1d72ccf9.tar.xz | |
Btrfs: do not overwrite scrub error with fault error in scrub ioctl
If scrub returned an error and then the copy_to_user() call did not
succeed, we would overwrite the error returned by scrub with -EFAULT.
Fix that by calling copy_to_user() only if btrfs_scrub_dev() returned
success.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
