We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff11764 commit f997ea3Copy full SHA for f997ea3
net/9p/trans_virtio.c
@@ -610,7 +610,7 @@ static int p9_virtio_probe(struct virtio_device *vdev)
610
chan->vc_wq = kmalloc(sizeof(wait_queue_head_t), GFP_KERNEL);
611
if (!chan->vc_wq) {
612
err = -ENOMEM;
613
- goto out_free_tag;
+ goto out_remove_file;
614
}
615
init_waitqueue_head(chan->vc_wq);
616
chan->ring_bufs_avail = 1;
@@ -628,6 +628,8 @@ static int p9_virtio_probe(struct virtio_device *vdev)
628
629
return 0;
630
631
+out_remove_file:
632
+ sysfs_remove_file(&vdev->dev.kobj, &dev_attr_mount_tag.attr);
633
out_free_tag:
634
kfree(tag);
635
out_free_vq:
0 commit comments