mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
hv: use correct order when freeing monitor_pages
We try to free two pages when only one has been allocated. Cleanup path is unlikely, so I haven't found any trace that would fit, but I hope that free_pages_prepare() does catch it. Cc: [email protected] Signed-off-by: Radim Krčmář <[email protected]> Reviewed-by: Amos Kong <[email protected]> Acked-by: Jason Wang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
4a2883ec79
commit
a100d88df1
1 changed files with 2 additions and 2 deletions
|
|
@ -224,8 +224,8 @@ cleanup:
|
|||
vmbus_connection.int_page = NULL;
|
||||
}
|
||||
|
||||
free_pages((unsigned long)vmbus_connection.monitor_pages[0], 1);
|
||||
free_pages((unsigned long)vmbus_connection.monitor_pages[1], 1);
|
||||
free_pages((unsigned long)vmbus_connection.monitor_pages[0], 0);
|
||||
free_pages((unsigned long)vmbus_connection.monitor_pages[1], 0);
|
||||
vmbus_connection.monitor_pages[0] = NULL;
|
||||
vmbus_connection.monitor_pages[1] = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue