Commit 98e3e2b
ksmbd: smbd: fix dma_unmap_sg() nents
The dma_unmap_sg() functions should be called with the same nents as the
dma_map_sg(), not the value the map function returned.
Fixes: 0626e66 ("cifsd: add server handler for central processing and tranport layers")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 24d479d commit 98e3e2b
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1353 | 1353 | | |
1354 | 1354 | | |
1355 | 1355 | | |
1356 | | - | |
| 1356 | + | |
1357 | 1357 | | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
| 1358 | + | |
| 1359 | + | |
1362 | 1360 | | |
1363 | | - | |
| 1361 | + | |
1364 | 1362 | | |
1365 | 1363 | | |
1366 | 1364 | | |
| |||
1431 | 1429 | | |
1432 | 1430 | | |
1433 | 1431 | | |
| 1432 | + | |
1434 | 1433 | | |
1435 | 1434 | | |
1436 | 1435 | | |
1437 | 1436 | | |
1438 | 1437 | | |
1439 | | - | |
| 1438 | + | |
1440 | 1439 | | |
1441 | 1440 | | |
1442 | 1441 | | |
1443 | 1442 | | |
1444 | 1443 | | |
1445 | 1444 | | |
1446 | 1445 | | |
1447 | | - | |
| 1446 | + | |
1448 | 1447 | | |
1449 | 1448 | | |
1450 | 1449 | | |
| |||
0 commit comments