Repository navigation
Commit 69a41da
committed
ASoC: SOF: logger: fix errors on copy_to_user() status
copy_to_user() returns the number of bytes that could not be copied.
Testing for the return value being equal to the requested value is not
correct.
Treat a non-zero return as an error
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>1 parent 3cb406f commit 69a41da
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments