android_kernel_oneplus_msm8998/drivers/hv
Dexuan Cui c866fa2682 Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels
commit fc96df16a1ce80cbb3c316ab7d4dc8cd5c2852ce upstream.

Before 98f4c65176, we returned zeros for unopened channels.
With 98f4c65176, we started to return random on-stack values.

We'd better return -EINVAL instead.

Fixes: 98f4c65176 ("hv: move ringbuffer bus attributes to dev_groups")
Cc: stable@vger.kernel.org
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13 10:05:27 +01:00
..
channel.c Drivers: hv: get rid of timeout in vmbus_open() 2017-04-27 09:09:32 +02:00
channel_mgmt.c
connection.c Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg() 2017-04-27 09:09:32 +02:00
hv.c Drivers: hv: vmbus: fix build warning 2018-02-25 11:03:46 +01:00
hv_balloon.c Drivers: hv: balloon: account for gaps in hot add regions 2017-04-27 09:09:34 +02:00
hv_fcopy.c Drivers: hv: util: Pass the channel information during the init call 2018-10-20 09:52:38 +02:00
hv_kvp.c HV: properly delay KVP packets when negotiation is in progress 2018-10-20 09:52:38 +02:00
hv_snapshot.c Drivers: hv: util: Pass the channel information during the init call 2018-10-20 09:52:38 +02:00
hv_util.c Drivers: hv: util: Pass the channel information during the init call 2018-10-20 09:52:38 +02:00
hv_utils_transport.c
hv_utils_transport.h
hyperv_vmbus.h Drivers: hv: kvp: fix IP Failover 2018-10-20 09:52:38 +02:00
Kconfig
Makefile
ring_buffer.c
vmbus_drv.c Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels 2019-01-13 10:05:27 +01:00