]> Git Repo - linux.git/commit
Fix ZERO_OR_NULL_PTR(ZERO_SIZE_PTR)
authorRoland Dreier <[email protected]>
Fri, 20 Jul 2007 19:13:20 +0000 (12:13 -0700)
committerLinus Torvalds <[email protected]>
Fri, 20 Jul 2007 19:33:44 +0000 (12:33 -0700)
commit1d4ec7b1d6f130818f9b62dea3411d9ee2ff6ff6
tree72af58d37022ee66a210a1707a392897681f2781
parentefa7e8673c78cc6de2d6c367eb6f50449c57ed90
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
This page took 0.055019 seconds and 4 git commands to generate.