Repository navigation
Commit 481c534
Slab: Fix memory leak in fallback_alloc()
The zonelist patches caused the loop that checks for available
objects in permitted zones to not terminate immediately. One object
per zone per allocation may be allocated and then abandoned.
Break the loop when we have successfully allocated one object.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 62a8efe commit 481c534
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3263 | 3263 | | |
3264 | 3264 | | |
3265 | 3265 | | |
3266 | | - | |
| 3266 | + | |
3267 | 3267 | | |
3268 | 3268 | | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
3269 | 3272 | | |
3270 | 3273 | | |
3271 | 3274 | | |
| |||
0 commit comments