Skip to content
Commit 0040e606 authored by Christoph Jaeger's avatar Christoph Jaeger Committed by Chris Mason
Browse files

btrfs: fix use-after-free in mount_subvol()



Pointer 'newargs' is used after the memory that it points to has already
been freed.

Picked up by Coverity - CID 1201425.

Fixes: 0723a047 ("btrfs: allow mounting btrfs subvolumes with
different ro/rw options")
Signed-off-by: default avatarChristoph Jaeger <christophjaeger@linux.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent e4fbaee2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment