]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/balloon: Use the correct sizeof when declaring frame_list
authorJulien Grall <julien.grall@citrix.com>
Wed, 7 Oct 2015 13:04:33 +0000 (14:04 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:18 +0000 (02:01 +0100)
commit2792952de3a8e0239a1f92f5b9f39454b4041626
tree673633d989ac023d78ee7217dcb1625764b0ebb2
parenta66c460acab672054f2ec0a19823c769611487ae
xen/balloon: Use the correct sizeof when declaring frame_list

The type of the item in frame_list is xen_pfn_t which is not an unsigned
long on ARM but an uint64_t.

With the current computation, the size of frame_list will be 2 *
PAGE_SIZE rather than PAGE_SIZE.

I bet it's just mistake when the type has been switched from "unsigned
long" to "xen_pfn_t" in commit 965c0aaafe3e75d4e65cd4ec862915869bde3abd
"xen: balloon: use correct type for frame_list".

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 3990dd27034606312429a09c807ea74a6ec32dde)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/balloon.c