Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: algif_hash - Handle initial af_alg_make_sg error correctly
When the first call to af_alg_make_sg fails, we may return garbage instead of the real error. This patch fixes it by setting the error if "copied" is zero. Based on a patch by Jesper Juhl. Reported-by: Jesper Juhl <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information