Btrfs: fix use after free in btrfs_start_workers fail path
commit9b627e9bf49ebfeb060dfae0435bdba06cf27cb8
authorJiri Slaby <jirislaby@gmail.com>
Thu, 2 Jul 2009 17:50:58 +0000 (2 13:50 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 2 Jul 2009 17:50:58 +0000 (2 13:50 -0400)
treecbd6255b5dd72f7b17c08ac5bfab9a95819008ee
parent9427216476d4fa75103f39d4b228c47d56ba20da
Btrfs: fix use after free in btrfs_start_workers fail path

worker memory is already freed on one fail path in btrfs_start_workers,
but is still dereferenced. Switch the dereference and kfree.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/async-thread.c