Messages in this thread | | | Date | Tue, 01 Jan 2008 19:31:12 -0800 (PST) | Subject | Re: [PATCH] net/x25: Add missing x25_neigh_put | From | David Miller <> |
| |
From: Julia Lawall <julia@diku.dk> Date: Tue, 1 Jan 2008 22:07:04 +0100 (CET)
> The function x25_get_neigh increments a reference count. At the point of > the second goto out, the result of calling x25_get_neigh is only stored in > a local variable, and thus no one outside the function will be able to > decrease the reference count. Thus, x25_neigh_put should be called before > the return in this case.
Patch applied, thanks.
| |