xen/time: Check that the per_cpu data structure has data before freeing.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 4 Jun 2013 21:11:52 +0000 (17:11 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 10 Jun 2013 12:43:36 +0000 (08:43 -0400)
commita05e2c371fbe73403793d126ceab93787cb4afd4
tree219dca44fab19e9e829c9df10a0bf4af5fb32bef
parentc9d76a24a28917c1ef6833f40c4ceff2e81b3ebb
xen/time: Check that the per_cpu data structure has data before freeing.

We don't check whether the per_cpu data structure has actually
been freed in the past. This checks it and if it has been freed
in the past then just continues on without double-freeing.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/time.c