diff options
author | Dexuan Cui <decui@microsoft.com> | 2018-12-13 17:35:43 +0100 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2018-12-13 20:58:27 +0100 |
commit | fc96df16a1ce80cbb3c316ab7d4dc8cd5c2852ce (patch) | |
tree | 0e5d0b7ec288a6c7b6d4e245a07bb126612fdbf4 /drivers/hv/channel_mgmt.c | |
parent | x86, hyperv: remove PCI dependency (diff) | |
download | linux-fc96df16a1ce80cbb3c316ab7d4dc8cd5c2852ce.tar.xz linux-fc96df16a1ce80cbb3c316ab7d4dc8cd5c2852ce.zip |
Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels
Before 98f4c651762c, we returned zeros for unopened channels.
With 98f4c651762c, we started to return random on-stack values.
We'd better return -EINVAL instead.
Fixes: 98f4c651762c ("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>
Diffstat (limited to 'drivers/hv/channel_mgmt.c')
0 files changed, 0 insertions, 0 deletions