From: Hank Janssen Date: Tue, 14 Dec 2010 00:23:36 +0000 (-0800) Subject: Staging: hv: Use only one txf buffer per channel and kmalloc/GFP_KERNEL on initialize X-Git-Tag: v2.6.38-rc1~423^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45241e50e3e741ee2a148693888b48e90e806de9;p=pandora-kernel.git 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 for pointing this out. And thanks to Jesper Juhl and Ky Srinivasan for suggesting a better implementation of my original patch. Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Reviewed-by: Jesper Juhl Cc: Evgeniy Polyakov Cc: Jesper Juhl Cc: Ky Srinivasan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed