diff options
author | 2010-06-24 16:59:59 +0300 | |
---|---|---|
committer | 2010-06-27 11:52:25 +0300 | |
commit | d5675bd204efd87a174eeea592de23c4c4e7f908 (patch) | |
tree | 11ec7e455d21285da68fa7db40af07ebf45f9d0e /drivers/base/platform.c | |
parent | sky2: enable rx/tx in sky2_phy_reinit() (diff) | |
download | wireguard-linux-d5675bd204efd87a174eeea592de23c4c4e7f908.tar.xz wireguard-linux-d5675bd204efd87a174eeea592de23c4c4e7f908.zip |
vhost: break out of polling loop on error
When ring parsing fails, we currently handle this
as ring empty condition. This means that we enable
kicks and recheck ring empty: if this not empty,
we re-start polling which of course will fail again.
Instead, let's return a negative error code and stop polling.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions