Commit 0a87dc3
fast-get: fix a recent regression: write before mapping RO
A recent commit introduced a regression: it moved writing data to a
buffer after the call, mapping the target buffer as read-only. Fix it
by moving the copy operation back up.
Fixes commit cfa5f02 ("fast-get: don't corrupt entries when failing")
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>1 parent 3db6d48 commit 0a87dc3
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
| |||
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
245 | | - | |
246 | | - | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| |||
0 commit comments