Files
twx-linux/fs/btrfs
Josef Bacik 685d7af55f btrfs: don't leak ret from do_chunk_alloc
commit 4559b0a717 upstream.

If we're trying to make a data reservation and we have to allocate a
data chunk we could leak ret == 1, as do_chunk_alloc() will return 1 if
it allocated a chunk.  Since the end of the function is the success path
just return 0.

CC: stable@vger.kernel.org # 4.4+
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-05 09:18:37 +02:00
..
…
2015-10-06 06:55:23 -07:00
…
2018-05-30 07:48:54 +02:00
…
…
…
…
…
…
…
…
…
2018-07-03 11:21:24 +02:00
2015-10-21 18:29:50 +02:00
…
2015-09-29 16:29:59 +02:00
2018-07-03 11:21:24 +02:00
…
…