early_res: Need to save the allocation name in drop_range_partial()
authorYinghai Lu <yinghai@kernel.org>
Tue, 2 Mar 2010 02:48:52 +0000 (18:48 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 2 Mar 2010 07:23:02 +0000 (23:23 -0800)
commitdce46a04d55d6358d2d4ab44a4946a19f9425fe2
tree37436a42293f4a47a1fb989007531123baedefa5
parent81d0d950e5037a26b71e568ff235ff9e998f4ab3
early_res: Need to save the allocation name in drop_range_partial()

During free_early_partial(), reserve_early_without_check() could end
extending the early_res area from __check_and_double_early_res(); as a
result, the location of the name for the current reservation could
change.

Therefore, we need to save a local copy of the name.

[ hpa: rewrote comment and checkin description ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4B8C7C94.7070000@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
kernel/early_res.c