diff options
author | Dexuan Cui <decui@microsoft.com> | 2018-12-13 16:35:43 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-13 10:05:27 +0100 |
commit | c866fa26823d952605b78931709b2f0954dc1145 (patch) | |
tree | d62a554b9f6d1a3f8f058c2fca7320427471bcdf /arch | |
parent | 61b4285244c1c910d3527090b49c5908beb92bf5 (diff) |
Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels
commit fc96df16a1ce80cbb3c316ab7d4dc8cd5c2852ce upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions