summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/p2m.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2015-01-05 16:27:51 +0100
committerDavid Vrabel <david.vrabel@citrix.com>2015-01-08 13:55:25 +0000
commit7be0772d19103b3eac3c2e9ac325df2563273fdc (patch)
tree649728c76fed0d5e0a9766971d9f3376f8eea785 /arch/x86/xen/p2m.c
parenta97dae1a2e92e728d28515e88e8eda151f5796f5 (diff)
downloadlinux-7be0772d19103b3eac3c2e9ac325df2563273fdc.tar.bz2
x86/xen: avoid freeing static 'name' when kasprintf() fails
In case kasprintf() fails in xen_setup_timer() we assign name to the static string "<timer kasprintf failed>". We, however, don't check that fact before issuing kfree() in xen_teardown_timer(), kernel is supposed to crash with 'kernel BUG at mm/slub.c:3341!' Solve the issue by making name a fixed length string inside struct xen_clock_event_device. 16 bytes should be enough. Suggested-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'arch/x86/xen/p2m.c')
0 files changed, 0 insertions, 0 deletions