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 Drivers: hv: vmbus: avoid scheduling in interrupt context in vmbus_initiate_unload() 2016-09-15 08:27:46 +02:00
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 Drivers: hv: util: catch allocation errors 2016-09-15 08:27:40 +02:00
hv_utils_transport.h Drivers: hv: util: introduce hv_utils_transport abstraction 2015-05-24 12:17:41 -07:00
hyperv_vmbus.h Drivers: hv: kvp: fix IP Failover 2018-10-20 09:52:38 +02:00
Kconfig x86: Make Linux guest support optional 2013-03-04 13:14:25 -08:00
Makefile Drivers: hv: util: introduce hv_utils_transport abstraction 2015-05-24 12:17:41 -07:00
ring_buffer.c Drivers: hv_vmbus: Fix signal to host condition 2015-08-05 11:44:29 -07:00
vmbus_drv.c Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels 2019-01-13 10:05:27 +01:00