diff options
author | Hank Janssen <[email protected]> | 2010-12-13 16:23:36 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2010-12-16 12:37:51 -0800 |
commit | 45241e50e3e741ee2a148693888b48e90e806de9 (patch) | |
tree | 86609094a15f5e5c8f8b66c59e600124115c7f7d /tools/perf/util/trace-event-scripting.c | |
parent | 244ba85606b567e6e990d2fac61e3bde5ff8f0ad (diff) |
Staging: hv: Use only one txf buffer per channel and kmalloc/GFP_KERNEL on initialize
Correct issue with not checking kmalloc return value.
This fix now only uses one receive buffer for all hv_utils
channels, and will do only one kmalloc on init and will return
with a -ENOMEM if kmalloc fails on initialize.
And properly clean up memory on failure.
Thanks to Evgeniy Polyakov <[email protected]> for pointing this out.
And thanks to Jesper Juhl <[email protected]> and Ky Srinivasan
<[email protected]> for suggesting a better implementation of
my original patch.
Signed-off-by: Haiyang Zhang <[email protected]>
Signed-off-by: Hank Janssen <[email protected]>
Reviewed-by: Jesper Juhl <[email protected]>
Cc: Evgeniy Polyakov <[email protected]>
Cc: Jesper Juhl <[email protected]>
Cc: Ky Srinivasan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions