Skip to content

Commit

Permalink
Merge branch 'stable/for-jens-4.12' of git://git.kernel.org/pub/scm/l…
Browse files Browse the repository at this point in the history
…inux/kernel/git/konrad/xen into for-linus

Pull a single fix from Konrad.
  • Loading branch information
Jens Axboe committed May 15, 2017
2 parents a00ebd1 + 2d4456c commit d3f7c35
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/block/xen-blkback/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,13 @@ static int xen_blkbk_remove(struct xenbus_device *dev)

dev_set_drvdata(&dev->dev, NULL);

if (be->blkif)
if (be->blkif) {
xen_blkif_disconnect(be->blkif);

/* Put the reference we set in xen_blkif_alloc(). */
xen_blkif_put(be->blkif);
/* Put the reference we set in xen_blkif_alloc(). */
xen_blkif_put(be->blkif);
}

kfree(be->mode);
kfree(be);
return 0;
Expand Down

0 comments on commit d3f7c35

Please sign in to comment.