commit | 6712cc9c22117a8af9f3df272b4a44fd2e4201cd | [log] [tgz] |
---|---|---|
author | Stephen Hemminger <stephen@networkplumber.org> | Mon Aug 20 21:16:40 2018 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Sep 12 09:31:00 2018 +0200 |
tree | a611d54ecc7834995fc5f3371d8ccdb1ba652a79 | |
parent | 029d727b4f5d7c82f78e0395a0d220271c2f92b8 [diff] |
vmbus: don't return values for uninitalized channels For unsupported device types, the vmbus channel ringbuffer is never initialized, and therefore reading the sysfs files will return garbage or cause a kernel OOPS. Fixes: c2e5df616e1a ("vmbus: add per-channel sysfs info") Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Cc: <stable@vger.kernel.org> # 4.15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>