diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 2d0950a17f48e153fd207a493bda7a309a490273..e51fd5f1042a6a9b6204b198ddf0edb190ae52df 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -5899,7 +5899,10 @@ static struct btrfs_io_context *alloc_btrfs_io_context(struct btrfs_fs_info *fs_ * and the stripes. */ sizeof(u64) * (total_stripes), - GFP_NOFS|__GFP_NOFAIL); + GFP_NOFS); + + if (!bioc) + return NULL; refcount_set(&bioc->refs, 1);