Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=32528d0fbda1093eeeaa7d0a2c498bbb5154099d
Commit:     32528d0fbda1093eeeaa7d0a2c498bbb5154099d
Parent:     e4630f9fd8cdc14eb1caa08dafe649eb5ae09985
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 10 15:51:11 2007 +0800
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Mon Sep 10 15:51:11 2007 +0800

    [CRYPTO] blkcipher: Fix inverted test in blkcipher_get_spot
    
    The previous patch had the conditional inverted.  This patch fixes it
    so that we return the original position if it does not straddle a page.
    
    Thanks to Bob Gilligan for spotting this.
    
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 crypto/blkcipher.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c
index 97586af..d8f8ec3 100644
--- a/crypto/blkcipher.c
+++ b/crypto/blkcipher.c
@@ -65,7 +65,7 @@ static inline void blkcipher_unmap_dst(struct blkcipher_walk 
*walk)
 static inline u8 *blkcipher_get_spot(u8 *start, unsigned int len)
 {
        u8 *end_page = (u8 *)(((unsigned long)(start + len - 1)) & PAGE_MASK);
-       return start < end_page ? start : end_page;
+       return start > end_page ? start : end_page;
 }
 
 static inline unsigned int blkcipher_done_slow(struct crypto_blkcipher *tfm,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to