Commit 8c1e79a4 authored by Federico Vaga's avatar Federico Vaga

kernel: in no blocks, then do not try to free

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 52912c86
......@@ -398,6 +398,11 @@ static void zfat_abort(struct zio_ti *ti)
unsigned int i;
dev_dbg(&fa->fmc->dev, "Aborting trigger\n");
/* Nothing to free */
if (!zfad_block)
return;
/* Free all blocks */
for (i = 0; i < fa->n_shots; ++i)
zio_buffer_free_block(bi, zfad_block[i].block);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment