Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1d4ec7b1d6f130818f9b62dea3411d9ee2ff6ff6 Commit: 1d4ec7b1d6f130818f9b62dea3411d9ee2ff6ff6 Parent: efa7e8673c78cc6de2d6c367eb6f50449c57ed90 Author: Roland Dreier <[EMAIL PROTECTED]> AuthorDate: Fri Jul 20 12:13:20 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Fri Jul 20 12:33:44 2007 -0700
Fix ZERO_OR_NULL_PTR(ZERO_SIZE_PTR) The comparison with ZERO_SIZE_PTR in ZERO_OR_NULL_PTR() needs to be <= (not just <) so that ZERO_OR_NULL_PTR(ZERO_SIZE_PTR) is 1. Signed-off-by: Roland Dreier <[EMAIL PROTECTED]> [ Duh! - Linus ] Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- include/linux/slab.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 7d0ecc1..d859354 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -40,7 +40,7 @@ */ #define ZERO_SIZE_PTR ((void *)16) -#define ZERO_OR_NULL_PTR(x) ((unsigned long)(x) < \ +#define ZERO_OR_NULL_PTR(x) ((unsigned long)(x) <= \ (unsigned long)ZERO_SIZE_PTR) /* - 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