diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-14 06:01:27 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-14 06:01:27 +0200 |
commit | f4ad2df2209acac66f3df47d847f1f714283feab (patch) | |
tree | 23da0368acbb6c15cdebd2a35808cd6bbe99b8ae /pci.c | |
parent | b492b1aac3d12683ccbc973b08b023ba0466cbec (diff) | |
download | ipecamera-f4ad2df2209acac66f3df47d847f1f714283feab.tar.gz ipecamera-f4ad2df2209acac66f3df47d847f1f714283feab.tar.bz2 ipecamera-f4ad2df2209acac66f3df47d847f1f714283feab.tar.xz ipecamera-f4ad2df2209acac66f3df47d847f1f714283feab.zip |
First iteration of work to preserve DMA state between executions
Diffstat (limited to 'pci.c')
-rw-r--r-- | pci.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -401,8 +401,12 @@ void pcilib_close(pcilib_t *ctx) { ctx->model_info.registers = pcilib_model[ctx->model].registers; } - while (ctx->kmem_list) { - pcilib_free_kernel_memory(ctx, ctx->kmem_list); + if (ctx->kmem_list) { + pcilib_warning("Not all kernel buffers are properly cleaned"); + + while (ctx->kmem_list) { + pcilib_free_kernel_memory(ctx, ctx->kmem_list, 0); + } } for (i = 0; i < PCILIB_MAX_BANKS; i++) { |