Re: [PATCH] net/x25: Add missing x25_neigh_put

From: David Miller
Date: Tue Jan 01 2008 - 22:31:27 EST


From: Julia Lawall <julia@xxxxxxx>
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/