aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/caif/caif_virtio.c
diff options
context:
space:
mode:
authorSjur Brændeland <sjur.brandeland@stericsson.com>2013-03-23 23:49:44 -0400
committerRusty Russell <rusty@rustcorp.com.au>2013-03-23 23:59:14 -0400
commitb2273be8d2df7b77165a70930064aeb9e8faebfa (patch)
tree0f87b70a53fd151d8bfc0e9ee9c09dd2cc6b6526 /drivers/net/caif/caif_virtio.c
parentcf994e0afae97382c0aa3cbc395805605d07a6e9 (diff)
caif_virtio: Use vringh_notify_enable correctly
Check on the correct return value from vringh_notify_enable_kern(). It returns false if more packets are available, not true. Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/net/caif/caif_virtio.c')
-rw-r--r--drivers/net/caif/caif_virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/caif/caif_virtio.c b/drivers/net/caif/caif_virtio.c
index f6caa1eb4cd6..fb80765e258e 100644
--- a/drivers/net/caif/caif_virtio.c
+++ b/drivers/net/caif/caif_virtio.c
@@ -318,7 +318,7 @@ exit:
318 318
319 /* Really out of patckets? (stolen from virtio_net)*/ 319 /* Really out of patckets? (stolen from virtio_net)*/
320 napi_complete(napi); 320 napi_complete(napi);
321 if (unlikely(vringh_notify_enable_kern(cfv->vr_rx)) && 321 if (unlikely(!vringh_notify_enable_kern(cfv->vr_rx)) &&
322 napi_schedule_prep(napi)) { 322 napi_schedule_prep(napi)) {
323 vringh_notify_disable_kern(cfv->vr_rx); 323 vringh_notify_disable_kern(cfv->vr_rx);
324 __napi_schedule(napi); 324 __napi_schedule(napi);