diff options
-rw-r--r-- | sound/pci/ctxfi/ctvmem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/ctxfi/ctvmem.c b/sound/pci/ctxfi/ctvmem.c index 65da6e466f80..b78f3fc3c33c 100644 --- a/sound/pci/ctxfi/ctvmem.c +++ b/sound/pci/ctxfi/ctvmem.c | |||
@@ -52,8 +52,7 @@ get_vm_block(struct ct_vm *vm, unsigned int size) | |||
52 | 52 | ||
53 | if (entry->size == size) { | 53 | if (entry->size == size) { |
54 | /* Move the vm node from unused list to used list directly */ | 54 | /* Move the vm node from unused list to used list directly */ |
55 | list_del(&entry->list); | 55 | list_move(&entry->list, &vm->used); |
56 | list_add(&entry->list, &vm->used); | ||
57 | vm->size -= size; | 56 | vm->size -= size; |
58 | block = entry; | 57 | block = entry; |
59 | goto out; | 58 | goto out; |