Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197875
b: refs/heads/master
c: 0643e4c
h: refs/heads/master
i:
  197873: 5b12759
  197871: 98aca2d
v: v3
  • Loading branch information
Julia Lawall authored and Rusty Russell committed May 19, 2010
1 parent e064d9d commit 3fb631e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8345adbf96fc1bde7d9846aadbe5af9b2ae90882
refs/heads/master: 0643e4c6e4fd67778fa886a89e6ec2320e0ff4d3
8 changes: 4 additions & 4 deletions trunk/drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ static int add_port(struct ports_device *portdev, u32 id)
kfree(port);
fail:
/* The host might want to notify management sw about port add failure */
send_control_msg(port, VIRTIO_CONSOLE_PORT_READY, 0);
__send_control_msg(portdev, id, VIRTIO_CONSOLE_PORT_READY, 0);
return err;
}

Expand Down Expand Up @@ -1559,6 +1559,9 @@ static int __devinit virtcons_probe(struct virtio_device *vdev)
return 0;

free_vqs:
/* The host might want to notify mgmt sw about device add failure */
__send_control_msg(portdev, VIRTIO_CONSOLE_BAD_ID,
VIRTIO_CONSOLE_DEVICE_READY, 0);
vdev->config->del_vqs(vdev);
kfree(portdev->in_vqs);
kfree(portdev->out_vqs);
Expand All @@ -1567,9 +1570,6 @@ static int __devinit virtcons_probe(struct virtio_device *vdev)
free:
kfree(portdev);
fail:
/* The host might want to notify mgmt sw about device add failure */
__send_control_msg(portdev, VIRTIO_CONSOLE_BAD_ID,
VIRTIO_CONSOLE_DEVICE_READY, 0);
return err;
}

Expand Down

0 comments on commit 3fb631e

Please sign in to comment.