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: K. Y. Srinivasan <>
Cc: Haiyang Zhang <>
Cc: Stephen Hemminger <>
Signed-off-by: Dexuan Cui <>
Signed-off-by: Sasha Levin <>
1 file changed