Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

kernel/nata - Fix a memory leak in ata-dma.

  • Loading branch information...
commit 1a7bbca142a2a1d10c61db0e4b5d3230e8fc10a2 1 parent 5658c3a
@tuxillo tuxillo authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  sys/dev/disk/nata/ata-dma.c
View
2  sys/dev/disk/nata/ata-dma.c
@@ -194,6 +194,8 @@ ata_dmafree(device_t dev)
bus_dma_tag_destroy(ch->dma->dmatag);
ch->dma->dmatag = NULL;
}
+ if (ch->dma)
+ kfree(ch->dma, M_ATADMA);
}
static void
Please sign in to comment.
Something went wrong with that request. Please try again.