Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120617
b: refs/heads/master
c: 5f459f0
h: refs/heads/master
i:
  120615: d760687
v: v3
  • Loading branch information
Evgeniy Polyakov authored and Herbert Xu committed Dec 25, 2008
1 parent 63be5c0 commit d6fd56d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6a10c84a2a2b08bdd637852c9cc42c41e109b25
refs/heads/master: 5f459f0adc7581da01cdd9b7f84db14a4559a390
8 changes: 5 additions & 3 deletions trunk/drivers/crypto/hifn_795x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1393,10 +1393,12 @@ static int hifn_setup_dma(struct hifn_device *dev,
n = nbytes;
while (n) {
if (t->length && rctx->walk.flags & ASYNC_FLAGS_MISALIGNED) {
BUG_ON(!sg_page(t));
dpage = sg_page(t);
doff = 0;
len = t->length;
} else {
BUG_ON(!sg_page(dst));
dpage = sg_page(dst);
doff = dst->offset;
len = dst->length;
Expand Down Expand Up @@ -1791,17 +1793,17 @@ static void hifn_process_ready(struct ablkcipher_request *req, int error)
continue;
}

saddr = kmap_atomic(sg_page(t), KM_IRQ1);
saddr = kmap_atomic(sg_page(t), KM_SOFTIRQ0);

err = ablkcipher_get(saddr, &t->length, t->offset,
dst, nbytes, &nbytes);
if (err < 0) {
kunmap_atomic(saddr, KM_IRQ1);
kunmap_atomic(saddr, KM_SOFTIRQ0);
break;
}

idx += err;
kunmap_atomic(saddr, KM_IRQ1);
kunmap_atomic(saddr, KM_SOFTIRQ0);
}

ablkcipher_walk_exit(&rctx->walk);
Expand Down

0 comments on commit d6fd56d

Please sign in to comment.