Re: [RFC PATCH] use dev_set_name(,NULL) to prevent leaking

From: Yinghai Lu
Date: Tue Apr 28 2009 - 11:26:39 EST


Kay Sievers wrote:
> On Tue, Apr 28, 2009 at 09:42, Yinghai Lu <yinghai@xxxxxxxxxx> wrote:
>> those about 1/3 dev_set_name() etc.
>
> put_device()?
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/base/core.c;h=4aa527b8a91381289eb175b33f46e3e418d10374;hb=HEAD#l848
>
ok, normal release path seems right, put_device will free the name.

how about other fail path, that there is not put_device involved?

YH
--
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/