linux-brain/drivers/hv
Dexuan Cui dac7314127 Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels
commit fc96df16a1 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>
2018-12-29 13:40:15 +01: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
channel.c Drivers: hv: vmbus: check the creation_status in vmbus_establish_gpadl() 2018-12-05 19:42:41 +01:00
channel_mgmt.c Drivers: hv: vmbus: do not mark HV_PCIE as perf_device 2018-04-20 08:20:41 +02:00
connection.c Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg() 2017-03-12 06:41:47 +01:00
hv.c x86/retpoline/hyperv: Convert assembler indirect jumps 2018-01-17 09:38:59 +01:00
hv_balloon.c Drivers: hv: balloon: Use available memory value in pressure report 2016-08-31 13:05:42 +02:00
hv_fcopy.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-12-20 10:07:23 +01:00
hv_kvp.c HV: properly delay KVP packets when negotiation is in progress 2018-10-20 09:51:33 +02:00
hv_snapshot.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-12-20 10:07:23 +01:00
hv_util.c hv: do not lose pending heartbeat vmbus packets 2016-10-25 08:52:10 +02:00
hv_utils_transport.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-12-20 10:07:23 +01:00
hv_utils_transport.h Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-12-20 10:07:23 +01:00
hyperv_vmbus.h Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg() 2017-03-12 06:41:47 +01:00
ring_buffer.c Drivers: hv: vmbus: Prevent sending data on a rescinded channel 2017-03-12 06:41:49 +01:00
vmbus_drv.c Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels 2018-12-29 13:40:15 +01:00