diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-12-13 17:54:53 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-12-13 17:54:53 +0400 |
commit | afdcd431cebe3498db9aa963c780fdd5099917ec (patch) | |
tree | 16d9155e136f0df56689eead95cf44935aab2a0c /drivers/block/xen-blkfront.c | |
parent | c29cb5eb8157a0049c882672a7f941261f23ea34 (diff) | |
parent | e20ab019e28dcf09c2727aa69e2a073ed66718b3 (diff) | |
download | linux-afdcd431cebe3498db9aa963c780fdd5099917ec.tar.xz |
Merge tag 'asoc-v3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v3.13
A few driver and error handling fixes plus a fix to ensure that we
mute streams when we should. The Atmel trigger addition is a fix to
ensure that we do the correct sequence of interactions with the
hardware.
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r-- | drivers/block/xen-blkfront.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index 432db1b59b00..c4a4c9006288 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c @@ -489,7 +489,7 @@ static int blkif_queue_request(struct request *req) if ((ring_req->operation == BLKIF_OP_INDIRECT) && (i % SEGS_PER_INDIRECT_FRAME == 0)) { - unsigned long pfn; + unsigned long uninitialized_var(pfn); if (segments) kunmap_atomic(segments); @@ -2011,6 +2011,10 @@ static void blkif_release(struct gendisk *disk, fmode_t mode) bdev = bdget_disk(disk, 0); + if (!bdev) { + WARN(1, "Block device %s yanked out from us!\n", disk->disk_name); + goto out_mutex; + } if (bdev->bd_openers) goto out; @@ -2041,6 +2045,7 @@ static void blkif_release(struct gendisk *disk, fmode_t mode) out: bdput(bdev); +out_mutex: mutex_unlock(&blkfront_mutex); } |