The patch titled Subject: net/9p: fix error path of p9_virtio_probe has been added to the -mm tree. Its filename is net-9p-fix-error-path-of-p9_virtio_probe.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/net-9p-fix-error-path-of-p9_virtio_probe.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/net-9p-fix-error-path-of-p9_virtio_probe.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Jean-Philippe Brucker <jean-philippe.brucker@xxxxxxx> Subject: net/9p: fix error path of p9_virtio_probe Currently when virtio_find_single_vq fails, we go through del_vqs which throws a warning (Trying to free already-free IRQ). Skip del_vqs if vq allocation failed. Link: http://lkml.kernel.org/r/20180524101021.49880-1-jean-philippe.brucker@xxxxxxx Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@xxxxxxx> Reviewed-by: Greg Kurz <groug@xxxxxxxx> Cc: Eric Van Hensbergen <ericvh@xxxxxxxxx> Cc: Ron Minnich <rminnich@xxxxxxxxxx> Cc: Latchesar Ionkov <lucho@xxxxxxxxxx> Cc: Dominique Martinet <asmadeus@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- net/9p/trans_virtio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN net/9p/trans_virtio.c~net-9p-fix-error-path-of-p9_virtio_probe net/9p/trans_virtio.c --- a/net/9p/trans_virtio.c~net-9p-fix-error-path-of-p9_virtio_probe +++ a/net/9p/trans_virtio.c @@ -563,7 +563,7 @@ static int p9_virtio_probe(struct virtio chan->vq = virtio_find_single_vq(vdev, req_done, "requests"); if (IS_ERR(chan->vq)) { err = PTR_ERR(chan->vq); - goto out_free_vq; + goto out_free_chan; } chan->vq->vdev->priv = chan; spin_lock_init(&chan->lock); @@ -616,6 +616,7 @@ out_free_tag: kfree(tag); out_free_vq: vdev->config->del_vqs(vdev); +out_free_chan: kfree(chan); fail: return err; _ Patches currently in -mm which might be from jean-philippe.brucker@xxxxxxx are net-9p-fix-error-path-of-p9_virtio_probe.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html