Skip to content

Commit

Permalink
virtio_net: Fix oops on early interrupts - introduced by virtio reset…
Browse files Browse the repository at this point in the history
… code

Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Christian Borntraeger authored and Jeff Garzik committed Feb 24, 2008
1 parent 7a7d23d commit d9d5dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ static int virtnet_probe(struct virtio_device *vdev)
netif_napi_add(dev, &vi->napi, virtnet_poll, napi_weight);
vi->dev = dev;
vi->vdev = vdev;
vdev->priv = vi;

/* We expect two virtqueues, receive then send. */
vi->rvq = vdev->config->find_vq(vdev, 0, skb_recv_done);
Expand Down Expand Up @@ -395,7 +396,6 @@ static int virtnet_probe(struct virtio_device *vdev)
}

pr_debug("virtnet: registered device %s\n", dev->name);
vdev->priv = vi;
return 0;

unregister:
Expand Down

0 comments on commit d9d5dcc

Please sign in to comment.