Skip to contentSkip to conversation

Btrfs: add missing kfree in btrfs_destroy_workqueue

PATCH In review Filipe David Borba Manana 2 participants 2 messages Mar 11, 2014 – Mar 12, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Btrfs: add missing kfree in btrfs_destroy_workqueue

---
 fs/btrfs/async-thread.c |    1 +
 1 file changed, 1 insertion(+)
fs/btrfs/async-thread.c +1 -0
index 00623dd..66532b8 100644
@@ -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)
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 10 lines · Filipe David Borba Manana
---
 fs/btrfs/async-thread.c |    1 +
 1 file changed, 1 insertion(+)
fs/btrfs/async-thread.c +0 -0
index 00623dd..66532b8 100644

fs/btrfs/async-thread.c void btrfs_destroy_workqueue(struct btrfs_workqueue *wq) · line 321

Quoted 7 lines
fs/btrfs/async-thread.c +1 -0
@@ -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.�翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{饼籯~镶炟^n噐■�侂h櫒璀�&{鄗夸z罐楘+€�+zf"穐殘啳嗃i��飦�戧鐉_璁鎗:+v墾�)撸鴐