diff mbox

Btrfs: add missing kfree in btrfs_destroy_workqueue

Message ID 1394548304-8741-1-git-send-email-fdmanana@gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Filipe Manana March 11, 2014, 2:31 p.m. UTC
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
---
 fs/btrfs/async-thread.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Qu Wenruo March 12, 2014, 12:34 a.m. UTC | #1
On Tue, 11 Mar 2014 14:31:44 +0000, Filipe David Borba Manana wrote:
> Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>

> ---

>  fs/btrfs/async-thread.c |    1 +

>  1 file changed, 1 insertion(+)

>

> diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c

> index 00623dd..66532b8 100644

> --- a/fs/btrfs/async-thread.c

> +++ b/fs/btrfs/async-thread.c

> @@ -315,6 +315,7 @@ void btrfs_destroy_workqueue(struct btrfs_workqueue *wq)

>  	if (wq->high)

>  		__btrfs_destroy_workqueue(wq->high);

>  	__btrfs_destroy_workqueue(wq->normal);

> +	kfree(wq);

>  }

>  

>  void btrfs_workqueue_set_max(struct btrfs_workqueue *wq, int max)

Thanks for finding out the missing kfree.
That's my fault....

Qu.
diff mbox

Patch

diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c
index 00623dd..66532b8 100644
--- a/fs/btrfs/async-thread.c
+++ b/fs/btrfs/async-thread.c
@@ -315,6 +315,7 @@  void btrfs_destroy_workqueue(struct btrfs_workqueue *wq)
 	if (wq->high)
 		__btrfs_destroy_workqueue(wq->high);
 	__btrfs_destroy_workqueue(wq->normal);
+	kfree(wq);
 }
 
 void btrfs_workqueue_set_max(struct btrfs_workqueue *wq, int max)