diff options
author | Dexuan Cui <decui@microsoft.com> | 2018-12-13 19:35:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-29 15:37:56 +0300 |
commit | c1f8e7acb0c249d2a3fc5fcc330f56e185a1f120 (patch) | |
tree | 8331a2c946e52abe4fdec74323df711213c68371 /kernel/futex.c | |
parent | 1972ca04708330b0edd52956e644e3974065a613 (diff) | |
download | linux-c1f8e7acb0c249d2a3fc5fcc330f56e185a1f120.tar.xz |
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 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions