Btrfs: async-thread: fix possible memory leak
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 30 Jul 2008 13:24:37 +0000 (09:24 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:05 +0000 (11:04 -0400)
commit3bf10418675cb424724b5cb9d7725b234defe1fd
treeda427247ddd1dec91b4c617757bddd926abca997
parentab78c84de1ce4db1b2a2cef361625ad80abbab3f
Btrfs: async-thread: fix possible memory leak

When kthread_run() returns failure, this worker hasn't been
added to the list, so btrfs_stop_workers() won't free it.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/async-thread.c