From: Michael S. Tsirkin Date: Thu, 24 Jun 2010 13:59:59 +0000 (+0300) Subject: vhost: break out of polling loop on error X-Git-Tag: v2.6.35-rc5~14^2~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5675bd204efd87a174eeea592de23c4c4e7f908;p=pandora-kernel.git 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 --- Reading git-diff-tree failed