Thread (28 messages) 28 messages, 4 authors, 2021-03-22

Re: [PATCH v4] mm: cma: support sysfs

From: Minchan Kim <minchan@kernel.org>
Date: 2021-03-19 18:22:19
Also in: linux-tegra, lkml

On Fri, Mar 19, 2021 at 08:56:06PM +0300, Dmitry Osipenko wrote:
19.03.2021 19:30, Minchan Kim пишет:
quoted
+static void cma_kobj_release(struct kobject *kobj)
+{
+	struct cma_kobject *cma_kobj = container_of(kobj, struct cma_kobject, kobj);
+
+	kfree(cma_kobj);
+}
Oh, wait.. I think this kfree wrong since cma_kobj belongs to the array.
Oh, good spot. Let me use kzalloc.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help