diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2015-01-05 16:27:51 +0100 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-01-08 13:55:25 +0000 |
commit | 7be0772d19103b3eac3c2e9ac325df2563273fdc (patch) | |
tree | 649728c76fed0d5e0a9766971d9f3376f8eea785 /tools/perf/builtin-buildid-cache.c | |
parent | a97dae1a2e92e728d28515e88e8eda151f5796f5 (diff) | |
download | linux-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 'tools/perf/builtin-buildid-cache.c')
0 files changed, 0 insertions, 0 deletions