Repository navigation
Commit 694d32d
mm/iob: handle overlapping copyin buffers
iob_copyin_internal() used memcpy() for all copy operations. Sources
inside the destination IOB can overlap the copied range and cause data
corruption. Use memmove() so overlapping ranges are copied safely.
Signed-off-by: gaohedong <gaohedong@xiaomi.com>1 parent 96d90ee commit 694d32d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments