Commit db578ecc authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Eicon ISDN: fix leak in eicon debug code.

Spotted with the source checker from Coverity.com.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarArmin Schindler <armin@melware.de>
parent 09c92cb8
...@@ -891,6 +891,7 @@ void diva_mnt_add_xdi_adapter (const DESCRIPTOR* d) { ...@@ -891,6 +891,7 @@ void diva_mnt_add_xdi_adapter (const DESCRIPTOR* d) {
if (clients[id].hDbg && (clients[id].request == d->request)) { if (clients[id].hDbg && (clients[id].request == d->request)) {
diva_os_leave_spin_lock (&dbg_q_lock, &old_irql, "register"); diva_os_leave_spin_lock (&dbg_q_lock, &old_irql, "register");
diva_os_leave_spin_lock (&dbg_adapter_lock, &old_irql1, "register"); diva_os_leave_spin_lock (&dbg_adapter_lock, &old_irql1, "register");
diva_os_free(0, pmem);
return; return;
} }
if (clients[id].hDbg) { /* slot is busy */ if (clients[id].hDbg) { /* slot is busy */
......
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