]> git.baikalelectronics.ru Git - kernel.git/commit
lguest: fix __get_vm_area usage.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 11 Mar 2008 14:35:56 +0000 (09:35 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Mar 2008 22:35:56 +0000 (09:35 +1100)
commitceb832f28ff8a1f6612001541d2691b2a63f071c
tree65dfe2b310103bd6f2c981de2e1d0faecd05805c
parente5d6b9ade44156951d136fa7efb981914131d245
lguest: fix __get_vm_area usage.

Robert Bragg's 7b4ce20d065078719fad583f1079da8963b123a6 tightened
(ie. fixed) the checking in __get_vm_area, and it broke lguest.

lguest should pass the exact "end" it wants, not some random constant
(it was possible previously that it would actually get an address
different from SWITCHER_ADDR).

Also, Fabio Checconi pointed out that we should make sure we're not
hitting the fixmap area.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Robert Bragg <robert@sixbynine.org>
drivers/lguest/core.c