Herbert Xu
269230e7c5
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 <jj@chaosbits.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2011-06-30 07:44:06 +08:00
..
2011-03-31 11:26:23 -03:00
2011-01-29 15:09:43 +11:00
2010-12-21 22:22:40 +11:00
2011-06-30 07:44:06 +08:00
2010-11-30 17:04:31 +08:00
2011-03-31 11:26:23 -03:00
2011-06-30 07:44:05 +08:00
2010-12-02 14:47:16 +08:00
2011-03-13 20:22:27 -07:00
2010-10-26 16:52:08 -07:00
2010-11-13 21:47:55 +09:00
2011-06-30 07:44:05 +08:00
2010-09-20 16:05:12 +08:00
2011-01-04 23:34:08 +11:00
2011-03-22 17:44:17 -07:00
2010-10-07 14:08:50 +01:00
2010-12-02 14:47:16 +08:00
2010-12-02 14:47:16 +08:00
2011-03-31 11:26:23 -03:00
2011-06-30 07:44:01 +08:00
2011-03-13 20:22:27 -07:00
2011-01-13 10:25:58 -08:00
2011-01-04 23:34:03 +11:00
2011-01-04 23:34:03 +11:00
2011-01-04 23:34:03 +11:00
2011-01-04 23:34:03 +11:00
2011-06-30 07:44:06 +08:00
2010-11-04 14:48:37 -04:00
2011-05-04 15:06:37 +10:00
2011-05-04 15:04:10 +10:00
2011-06-30 07:44:00 +08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-22 17:44:17 -07:00