]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix use-after-free in mount_subvol()
authorChristoph Jaeger <christophjaeger@linux.com>
Sat, 12 Apr 2014 11:33:13 +0000 (13:33 +0200)
committerChris Mason <clm@fb.com>
Mon, 14 Apr 2014 18:31:08 +0000 (11:31 -0700)
commit6cc8f7e6c08d0157a66776c71154d0ee8c0653e1
tree42978de09e95365ba46df73587b3a30149566247
parent17255cd3dbc92340b80487e0afab8a9dd34d0805
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: a0bb87008d ("btrfs: allow mounting btrfs subvolumes with
different ro/rw options")
Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/super.c