diff options
author | Roland Dreier <rdreier@cisco.com> | 2007-07-20 12:13:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-20 12:33:44 -0700 |
commit | 1d4ec7b1d6f130818f9b62dea3411d9ee2ff6ff6 (patch) | |
tree | 72af58d37022ee66a210a1707a392897681f2781 /include/linux/slab.h | |
parent | efa7e8673c78cc6de2d6c367eb6f50449c57ed90 (diff) | |
download | lwn-1d4ec7b1d6f130818f9b62dea3411d9ee2ff6ff6.tar.gz lwn-1d4ec7b1d6f130818f9b62dea3411d9ee2ff6ff6.zip |
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 <rolandd@cisco.com>
[ Duh! - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/slab.h')
-rw-r--r-- | 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 7d0ecc1659f0..d859354b9e51 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) /* |