btrfs: add error handling for scrub_workers_get()
authorZhao Lei <zhaolei@cn.fujitsu.com>
Fri, 12 Jun 2015 12:36:58 +0000 (20:36 +0800)
committerChris Mason <clm@fb.com>
Tue, 30 Jun 2015 20:20:03 +0000 (13:20 -0700)
commite82afc52abff07a4acbc90f899598ebafb662831
tree9449e1be751e0575d92df80ecadfe84bc3a9d574
parent65f5333875d7bbfc13436e224a181d10a80d1ada
btrfs: add error handling for scrub_workers_get()

Although it is a rare case, we'd better free previous allocated
memory on error.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c