diff options
| -rw-r--r-- | drivers/staging/ccree/ssi_buffer_mgr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c b/drivers/staging/ccree/ssi_buffer_mgr.c index 038e2ff5e545..6471d3d2d375 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.c +++ b/drivers/staging/ccree/ssi_buffer_mgr.c | |||
| @@ -216,7 +216,8 @@ void ssi_buffer_mgr_copy_scatterlist_portion( | |||
| 216 | uint32_t nents, lbytes; | 216 | uint32_t nents, lbytes; |
| 217 | 217 | ||
| 218 | nents = ssi_buffer_mgr_get_sgl_nents(sg, end, &lbytes, NULL); | 218 | nents = ssi_buffer_mgr_get_sgl_nents(sg, end, &lbytes, NULL); |
| 219 | sg_copy_buffer(sg, nents, (void *)dest, (end - to_skip), 0, (direct == SSI_SG_TO_BUF)); | 219 | sg_copy_buffer(sg, nents, (void *)dest, (end - to_skip + 1), to_skip, |
| 220 | (direct == SSI_SG_TO_BUF)); | ||
| 220 | } | 221 | } |
| 221 | 222 | ||
| 222 | static inline int ssi_buffer_mgr_render_buff_to_mlli( | 223 | static inline int ssi_buffer_mgr_render_buff_to_mlli( |
