[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191115.122119.1151591656300969166.davem@davemloft.net>
Date: Fri, 15 Nov 2019 12:21:19 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jouni.hogander@...kie.com
Cc: netdev@...r.kernel.org, lukas.bulwahn@...il.com
Subject: Re: [PATCH] net-sysfs: Fix memory leak in register_queue_kobjects
From: jouni.hogander@...kie.com
Date: Thu, 14 Nov 2019 13:13:25 +0200
> +err_sysfs_create:
> + kobject_put(kobj);
> +err_init_and_add:
> + kfree_const(kobj->name);
If you put the object, then you cannot access kobj->name afterwards as kobj
may be released at this point.
Both of your fixes add this bug.
Powered by blists - more mailing lists