Commit 70ba85e
ksmbd: smbd: fix dma_unmap_sg() nents
[ Upstream commit 98e3e2b ]
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>
[ Context ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent c08cf31 commit 70ba85e
1 file changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | | - | |
| 1111 | + | |
1112 | 1112 | | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
| 1113 | + | |
| 1114 | + | |
1117 | 1115 | | |
1118 | | - | |
| 1116 | + | |
1119 | 1117 | | |
1120 | 1118 | | |
1121 | 1119 | | |
| |||
1184 | 1182 | | |
1185 | 1183 | | |
1186 | 1184 | | |
| 1185 | + | |
1187 | 1186 | | |
1188 | 1187 | | |
1189 | 1188 | | |
1190 | 1189 | | |
1191 | 1190 | | |
1192 | | - | |
| 1191 | + | |
1193 | 1192 | | |
1194 | 1193 | | |
1195 | 1194 | | |
1196 | 1195 | | |
1197 | 1196 | | |
1198 | 1197 | | |
1199 | 1198 | | |
1200 | | - | |
| 1199 | + | |
1201 | 1200 | | |
1202 | 1201 | | |
1203 | 1202 | | |
| |||
0 commit comments