From 1aaa822d24340a54b66c214958e00a6d25a8ceb5 Mon Sep 17 00:00:00 2001 From: Taisuke Yamada Date: Sat, 13 Sep 2008 16:46:15 -0400 Subject: [PATCH] --- yaml --- r: 109825 b: refs/heads/master c: 97b697a11b07e2ebfa69c488132596cc5eb24119 h: refs/heads/master i: 109823: 06cad187dcc56192df87a1e81fc5da7a15c01c6e v: v3 --- [refs] | 2 +- trunk/include/linux/ata.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 8a444917a5d8..b8b52f75c3bd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 99580664aa83ca04bb52988d504a4195b41833b0 +refs/heads/master: 97b697a11b07e2ebfa69c488132596cc5eb24119 diff --git a/trunk/include/linux/ata.h b/trunk/include/linux/ata.h index 1ce19c1ef0e9..8a12d718c169 100644 --- a/trunk/include/linux/ata.h +++ b/trunk/include/linux/ata.h @@ -745,7 +745,7 @@ static inline int ata_ok(u8 status) static inline int lba_28_ok(u64 block, u32 n_block) { /* check the ending block number */ - return ((block + n_block - 1) < ((u64)1 << 28)) && (n_block <= 256); + return ((block + n_block) < ((u64)1 << 28)) && (n_block <= 256); } static inline int lba_48_ok(u64 block, u32 n_block)