]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In g_eli_read_done() and g_eli_write_done(), for a bio with
authorMikolaj Golub <trociny@FreeBSD.org>
Sun, 3 Apr 2011 17:38:12 +0000 (17:38 +0000)
committerMikolaj Golub <trociny@FreeBSD.org>
Sun, 3 Apr 2011 17:38:12 +0000 (17:38 +0000)
commit90574b0a793c0e2fd8910717759a0e67c6bdead1
treebacca279c72fc9213626c6b36c3ff72b61a54516
parent97efbf40fc6ded8244735338444a5b4696701ef5
In g_eli_read_done() and g_eli_write_done(), for a bio with
bio_children > 1, g_destroy_bio() is never called and the bio
leaks. Fix this by calling g_destroy_bio() earlier, before the check.

Submitted by: Victor Balada Diaz <victor@bsdes.net> (initial version)
Approved by: pjd (mentor)
MFC after: 1 week
sys/geom/eli/g_eli.c