x86/sysctl: Fix NULL pointer dereference in error path
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 11 Jan 2017 17:51:44 +0000 (17:51 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 13 Jan 2017 13:16:57 +0000 (13:16 +0000)
commit2704c78aaa156e6843681ee344dd0ce75dbc63b2
tree7bb0aa39f5062741fa8c678561a289ff6258a06e
parent2ef6ace428dec4795b8b0a67fff6949e817013de
x86/sysctl: Fix NULL pointer dereference in error path

This was introduced by c/s c38869e711 "x86/cpuid: Drop the temporary linear
feature bitmap from struct cpuid_policy", and caught by Coverity.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/sysctl.c