mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 01:40:30 +00:00
45241e50e3
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> |
||
---|---|---|
.. | ||
blkvsc_drv.c | ||
blkvsc.c | ||
channel_mgmt.c | ||
channel_mgmt.h | ||
channel.c | ||
channel.h | ||
connection.c | ||
hv_api.h | ||
hv_timesource.c | ||
hv_utils.c | ||
hv.c | ||
hv.h | ||
Kconfig | ||
logging.h | ||
Makefile | ||
netvsc_api.h | ||
netvsc_drv.c | ||
netvsc.c | ||
netvsc.h | ||
osd.c | ||
osd.h | ||
ring_buffer.c | ||
ring_buffer.h | ||
rndis_filter.c | ||
rndis_filter.h | ||
rndis.h | ||
storvsc_api.h | ||
storvsc_drv.c | ||
storvsc.c | ||
TODO | ||
utils.h | ||
version_info.h | ||
vmbus_api.h | ||
vmbus_channel_interface.h | ||
vmbus_drv.c | ||
vmbus_packet_format.h | ||
vmbus_private.h | ||
vmbus.h | ||
vstorage.h |