bus/vmbus: handle EOF on IRQ read
authorStephen Hemminger <sthemmin@microsoft.com>
Mon, 6 Aug 2018 18:11:08 +0000 (11:11 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Aug 2018 12:41:51 +0000 (14:41 +0200)
commitcd3e20a687032afa31752ef02a2c7bca9ce6108d
treef5d696c2f497edc39b31594cb4dad74f8c1e19bb
parent5ef90536d748105fcf12fa887347365bdd18e01a
bus/vmbus: handle EOF on IRQ read

This function is not used by netvsc driver yet.
Still the code should handle case where device driver returns
zero (due to rescind).

Coverity issue: 302871
Fixes: 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support")

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/bus/vmbus/linux/vmbus_uio.c