diff options
author | Dexuan Cui <decui@microsoft.com> | 2018-12-13 16:35:43 +0000 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2018-12-13 14:58:27 -0500 |
commit | fc96df16a1ce80cbb3c316ab7d4dc8cd5c2852ce (patch) | |
tree | 0e5d0b7ec288a6c7b6d4e245a07bb126612fdbf4 /block | |
parent | c629421a990033ba539eb8585e73a2e6fa9ea631 (diff) |
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 'block')
0 files changed, 0 insertions, 0 deletions