History

workqueue: use kmem_cache_free() instead of kfree()

memory allocated by kmem_cache_alloc() should be freed using kmem_cache_free(), not kfree().

Wei Yongjun committed 13 years ago

Commit cece95d1 parent 5c529591 file · +1 −1Browse files

Showing the changes to kernel/workqueue.c (1 of 1 file). Show all

Unified · Split

kernel/workqueue.c+1−1
@@ -3750,7 +3750,7 @@ static void free_unbound_pwq(struct pool_workqueue *pwq) · 3749 unmodified lines
37503750
37513751 if (pwq) {
37523752 put_unbound_pool(pwq->pool);
3753− kfree(pwq);
3753+ kmem_cache_free(pwq_cache, pwq);
37543754 }
37553755 }
37563756

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t