]> err.no Git - linux-2.6/commit
lguest: avoid using NR_CPUS as a bounds check.
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 3 May 2008 02:50:51 +0000 (21:50 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 2 May 2008 11:50:51 +0000 (21:50 +1000)
commit24adf12722b4f2800e5b5f0955d57033f0d0c9e5
tree3f9aee46f5d5fab937c03732e668735dde7663da
parent48e4043d4529523cbc7fa8dd745bd8e2c45ce1d3
lguest: avoid using NR_CPUS as a bounds check.

NR_CPUS (being a host number) is an arbitrary limit for the Guest.
Using the array size directly (which currently happes to be NR_CPUS)
is more futureproof.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/lguest/lguest_user.c