diff options
| author | Wang Qing <wangqing@vivo.com> | 2021-03-01 20:05:48 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-28 12:05:45 +0200 |
| commit | a96e0c78b2cedf6b5f54fcda9d1d312ff6d24ca1 (patch) | |
| tree | 21cc1ada56f655216632b1bd21db4760e1153041 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 4e20eb55d6b69bb54856683a34f125c176f20443 (diff) | |
arc: kernel: Return -EFAULT if copy_to_user() fails
[ Upstream commit 46e152186cd89d940b26726fff11eb3f4935b45a ]
The copy_to_user() function returns the number of bytes remaining to be
copied, but we want to return -EFAULT if the copy doesn't complete.
Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
