diff options
author | Yu-Huan Hsu <yhsu@nvidia.com> | 2010-07-08 22:26:56 -0700 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-07-09 09:35:03 -0700 |
commit | 2a63e51b5ede608a2f6cc20f31c55e660b5b2ce9 (patch) | |
tree | fe93e00fdcf5e5841ac4e18f5ff2dc2da99d70f2 /drivers/char | |
parent | 39ec92ef5dbbe3d4610e441cbad6d183a6a9eeee (diff) |
nvmap : Fix missing size update in carveout
Added carveout block size properly in nvmap_split_block.
Bug 707072
Change-Id: Ie46ca482aba9f6e3231948a159144b41fe0e7c1c
Reviewed-on: http://git-master/r/3708
Tested-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/nvmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/nvmap.c b/drivers/char/nvmap.c index a40c4ac37e79..bc9edb7aa88d 100644 --- a/drivers/char/nvmap.c +++ b/drivers/char/nvmap.c @@ -363,6 +363,7 @@ static void nvmap_split_block(struct nvmap_carveout *co, if (block->prev != -1) { spare = BLOCK(co, block->prev); spare->size += start - block->base; + block->size -= (start - block->base); block->base = start; } } |