diff options
author | Hank Janssen | 2010-12-14 01:23:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2010-12-16 21:37:51 +0100 |
commit | 45241e50e3e741ee2a148693888b48e90e806de9 (patch) | |
tree | 86609094a15f5e5c8f8b66c59e600124115c7f7d /drivers/staging/Makefile | |
parent | staging: hv: remove unneeded osd_schedule_callback (diff) | |
download | kernel-qcow2-linux-45241e50e3e741ee2a148693888b48e90e806de9.tar.gz kernel-qcow2-linux-45241e50e3e741ee2a148693888b48e90e806de9.tar.xz kernel-qcow2-linux-45241e50e3e741ee2a148693888b48e90e806de9.zip |
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 <zbr@ioremap.net> for pointing this out.
And thanks to Jesper Juhl <jj@chaosbits.net> and Ky Srinivasan
<ksrinivasan@novell.com> for suggesting a better implementation of
my original patch.
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Reviewed-by: Jesper Juhl <jj@chaosbits.net>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Cc: Jesper Juhl <jj@chaosbits.net>
Cc: Ky Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/Makefile')
0 files changed, 0 insertions, 0 deletions