Commit b90dc5d
ksmbd: remove unsafe_memcpy use in session setup
commit d782d6e upstream.
Kees pointed out to just use directly ->Buffer instead of pointing
->Buffer using offset not to use unsafe_memcpy().
Suggested-by: Kees Cook <kees@kernel.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 107a48d commit b90dc5d
1 file changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | | - | |
1349 | | - | |
| 1348 | + | |
1350 | 1349 | | |
1351 | 1350 | | |
1352 | 1351 | | |
| |||
1379 | 1378 | | |
1380 | 1379 | | |
1381 | 1380 | | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
| 1381 | + | |
1385 | 1382 | | |
1386 | 1383 | | |
1387 | 1384 | | |
| |||
1463 | 1460 | | |
1464 | 1461 | | |
1465 | 1462 | | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
| 1463 | + | |
1470 | 1464 | | |
1471 | 1465 | | |
1472 | 1466 | | |
| |||
0 commit comments