diff options
author | Jens Axboe <axboe@fb.com> | 2017-05-15 17:33:06 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-05-15 17:33:06 -0400 |
commit | d3f7c35c1ab33e6aa035407fed38d9149858bed7 (patch) | |
tree | 74dd68fc021d3089e5fc0083a1712e171ec1b2a4 | |
parent | a00ebd1cf12c378a1d4f7a1d6daf1d76c1eaad82 (diff) | |
parent | 2d4456c73a487abe53863e10641c2f73537edf5c (diff) |
Merge branch 'stable/for-jens-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen into for-linus
Pull a single fix from Konrad.
-rw-r--r-- | drivers/block/xen-blkback/xenbus.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index 8fe61b5dc5a6..1f3dfaa54d87 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen-blkback/xenbus.c | |||
@@ -504,11 +504,13 @@ static int xen_blkbk_remove(struct xenbus_device *dev) | |||
504 | 504 | ||
505 | dev_set_drvdata(&dev->dev, NULL); | 505 | dev_set_drvdata(&dev->dev, NULL); |
506 | 506 | ||
507 | if (be->blkif) | 507 | if (be->blkif) { |
508 | xen_blkif_disconnect(be->blkif); | 508 | xen_blkif_disconnect(be->blkif); |
509 | 509 | ||
510 | /* Put the reference we set in xen_blkif_alloc(). */ | 510 | /* Put the reference we set in xen_blkif_alloc(). */ |
511 | xen_blkif_put(be->blkif); | 511 | xen_blkif_put(be->blkif); |
512 | } | ||
513 | |||
512 | kfree(be->mode); | 514 | kfree(be->mode); |
513 | kfree(be); | 515 | kfree(be); |
514 | return 0; | 516 | return 0; |