summaryrefslogtreecommitdiff
path: root/block/blk.h
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2015-01-05 18:27:51 +0300
committerDavid Vrabel <david.vrabel@citrix.com>2015-01-08 16:55:25 +0300
commit7be0772d19103b3eac3c2e9ac325df2563273fdc (patch)
tree649728c76fed0d5e0a9766971d9f3376f8eea785 /block/blk.h
parenta97dae1a2e92e728d28515e88e8eda151f5796f5 (diff)
downloadlinux-7be0772d19103b3eac3c2e9ac325df2563273fdc.tar.xz
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 'block/blk.h')
0 files changed, 0 insertions, 0 deletions