[HALX86] HalpDmaAllocateChildAdapter(): Fix memory leak, on error (#4156)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Mon, 20 Dec 2021 20:14:36 +0000 (21:14 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Dec 2021 20:14:36 +0000 (21:14 +0100)
commit0fd3e515808e6c0cc4dd2c662133aeb6e3f9e7b2
treec285e38a8853675e49b68fb0ca5eeec54305ab3e
parent2196a06fc1d11243899e36124c965ee0399bd31b
[HALX86] HalpDmaAllocateChildAdapter(): Fix memory leak, on error (#4156)

Simplify code, instead of adding 2 missing ObDereferenceObject().
(Note that ObInsertObject() always dereferences the object in case of failure.)

CORE-17904
hal/halx86/generic/dma.c