]> git.hungrycats.org Git - linux/commit
[PATCH] Fix cpumask iterator over empty cpu set
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Apr 2004 11:30:50 +0000 (04:30 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 27 Apr 2004 11:30:50 +0000 (04:30 -0700)
commit7cd8ebe7d68ef0816df4a1a4efe977f7d70d7c04
tree393f326e36f0b4456d44e044fed061fe6136a787
parent0eaa6e8ab2e28b8fc2992d0360f8d178de8106a5
[PATCH] Fix cpumask iterator over empty cpu set

Can't use _ffs() without first checking for zero, and if bits beyond
NR_CPUS set it'll give bogus results.  Use find_first_bit
include/asm-generic/cpumask_arith.h