Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260073
b: refs/heads/master
c: dffbb44
h: refs/heads/master
i:
  260071: 903f105
v: v3
  • Loading branch information
Jerome Marchand authored and Greg Kroah-Hartman committed Jul 18, 2011
1 parent a8e497c commit db485eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 7453ea886e875544b50aa43b6f86313421bbc492
refs/heads/master: dffbb44d5575facfb38a57cbb2925b03a5fc751b
4 changes: 2 additions & 2 deletions trunk/drivers/staging/zram/zram_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ static void handle_uncompressed_page(struct zram *zram, struct bio_vec *bvec,
cmem = kmap_atomic(zram->table[index].page, KM_USER1);

memcpy(user_mem + bvec->bv_offset, cmem + offset, bvec->bv_len);
kunmap_atomic(user_mem, KM_USER0);
kunmap_atomic(cmem, KM_USER1);
kunmap_atomic(user_mem, KM_USER0);

flush_dcache_page(page);
}
Expand Down Expand Up @@ -267,8 +267,8 @@ static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec,
kfree(uncmem);
}

kunmap_atomic(user_mem, KM_USER0);
kunmap_atomic(cmem, KM_USER1);
kunmap_atomic(user_mem, KM_USER0);

/* Should NEVER happen. Return bio error if it does. */
if (unlikely(ret != LZO_E_OK)) {
Expand Down

0 comments on commit db485eb

Please sign in to comment.