|
@@ -824,7 +824,7 @@ static int gcmaes_decrypt(struct aead_request *req, unsigned int assoclen,
|
|
if (sg_is_last(req->src) &&
|
|
if (sg_is_last(req->src) &&
|
|
(!PageHighMem(sg_page(req->src)) ||
|
|
(!PageHighMem(sg_page(req->src)) ||
|
|
req->src->offset + req->src->length <= PAGE_SIZE) &&
|
|
req->src->offset + req->src->length <= PAGE_SIZE) &&
|
|
- sg_is_last(req->dst) &&
|
|
|
|
|
|
+ sg_is_last(req->dst) && req->dst->length &&
|
|
(!PageHighMem(sg_page(req->dst)) ||
|
|
(!PageHighMem(sg_page(req->dst)) ||
|
|
req->dst->offset + req->dst->length <= PAGE_SIZE)) {
|
|
req->dst->offset + req->dst->length <= PAGE_SIZE)) {
|
|
one_entry_in_sg = 1;
|
|
one_entry_in_sg = 1;
|