1
linux/drivers/staging/hv
Hank Janssen 45241e50e3 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>
2010-12-16 12:37:51 -08:00
..
blkvsc_drv.c staging: hv: Convert camel case functions in storvsc_api.h to lowercase 2010-12-06 16:11:08 -08:00
blkvsc.c staging: hv: Convert camel case local variables in blkvsc.c to lowercase 2010-12-06 16:11:10 -08:00
channel_mgmt.c staging: hv: convert channel_mgmt.c to not call osd_schedule_callback 2010-12-16 12:35:15 -08:00
channel_mgmt.h staging: hv: convert channel_mgmt.c to not call osd_schedule_callback 2010-12-16 12:35:15 -08:00
channel.c staging: hv: Convert camel cased functions in ring_buffer.c to lower cases 2010-11-09 16:42:12 -08:00
channel.h staging: hv: Rename camel cased functions in channel.c to lowercase 2010-10-07 14:43:02 -07:00
connection.c staging: hv: Convert camel cased functions in osd.c to lower cases 2010-11-09 16:42:11 -08:00
hv_api.h staging: hv: Convert camel cased functions in hv.c to lower cases 2010-11-09 16:42:11 -08:00
hv_timesource.c
hv_utils.c Staging: hv: Use only one txf buffer per channel and kmalloc/GFP_KERNEL on initialize 2010-12-16 12:37:51 -08:00
hv.c staging: hv: Convert camel cased functions in osd.c to lower cases 2010-11-09 16:42:11 -08:00
hv.h staging: hv: Convert camel cased functions in hv.c to lower cases 2010-11-09 16:42:11 -08:00
Kconfig
logging.h
Makefile Staging: hv: remove vmbus.c 2010-12-02 11:59:22 -08:00
netvsc_api.h staging: hv: Convert camel cased struct fields in netvsc.h to lower cases 2010-12-13 10:31:52 -08:00
netvsc_drv.c staging: hv: Convert camel cased struct fields in netvsc_api.h to lower cases 2010-12-13 10:31:51 -08:00
netvsc.c staging: hv: Convert camel cased struct fields in netvsc.h to lower cases 2010-12-13 10:31:52 -08:00
netvsc.h staging: hv: Convert camel cased struct fields in netvsc.h to lower cases 2010-12-13 10:31:52 -08:00
osd.c staging: hv: remove unneeded osd_schedule_callback 2010-12-16 12:35:15 -08:00
osd.h staging: hv: remove unneeded osd_schedule_callback 2010-12-16 12:35:15 -08:00
ring_buffer.c staging: hv: Convert camel cased functions in ring_buffer.c to lower cases 2010-11-09 16:42:12 -08:00
ring_buffer.h staging: hv: Convert camel cased functions in ring_buffer.c to lower cases 2010-11-09 16:42:12 -08:00
rndis_filter.c staging: hv: Convert camel cased struct fields in rndis.h to lower cases 2010-12-13 10:31:52 -08:00
rndis_filter.h staging: hv: Convert camel cased functions in rndis_filter.c to lower cases 2010-12-13 10:31:51 -08:00
rndis.h staging: hv: Convert camel cased struct fields in rndis.h to lower cases 2010-12-13 10:31:52 -08:00
storvsc_api.h staging: hv: Convert camel case functions in storvsc_api.h to lowercase 2010-12-06 16:11:08 -08:00
storvsc_drv.c Staging: Merge 2.6.37-rc5 into staging-next 2010-12-07 10:47:56 -08:00
storvsc.c staging: hv: Convert camel case local variables in storvsc.c to lowercase 2010-12-06 16:11:09 -08:00
TODO staging: hv: Convert vmbus driver interface function pointer table to constant 2010-09-14 16:27:12 -07:00
utils.h
version_info.h
vmbus_api.h Staging: hv: make some vmbus_drv functions static 2010-12-02 12:11:25 -08:00
vmbus_channel_interface.h
vmbus_drv.c staging: hv: convert vmbus_on_msg_dpc to not call osd_schedule_callback 2010-12-16 12:35:14 -08:00
vmbus_packet_format.h
vmbus_private.h Staging: hv: remove OnChildDeviceAdd vmbus_driver callback 2010-12-02 09:16:04 -08:00
vmbus.h Staging: hv: remove struct vmbus_channel_interface 2010-10-21 10:03:44 -07:00
vstorage.h staging: hv: Convert camel case struct fields in vstorage.h to lowercase 2010-12-06 16:11:07 -08:00