commit fc96df16a1ce80cbb3c316ab7d4dc8cd5c2852ce upstream. Before98f4c65176, we returned zeros for unopened channels. With98f4c65176, 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>