Re: [PATCH 01/11] netlink: add reference of module in netlink_dump_start

2 messages, 2 authors, 2012-09-26 · open the first message on its own page

Re: [PATCH 01/11] netlink: add reference of module in netlink_dump_start

From: Eric Dumazet <hidden>
Date: 2012-09-26 07:07:27

On Wed, 2012-09-26 at 12:52 +0800, Gao feng wrote:
+int netlink_dump_done(struct netlink_callback *cb)
+{
+	if (cb->module)
+		module_put(cb->module);
+	return 0;
+}
+EXPORT_SYMBOL(netlink_dump_done);
+
No need to test cb->module being not NULL


int netlink_dump_done(struct netlink_callback *cb)
{
	module_put(cb->module);
	return 0;
}

Same remark for try_module_get() call


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: [PATCH 01/11] netlink: add reference of module in netlink_dump_start

From: Gao feng <hidden>
Date: 2012-09-26 07:24:03

于 2012年09月26日 15:07, Eric Dumazet 写道:
On Wed, 2012-09-26 at 12:52 +0800, Gao feng wrote:
quoted
+int netlink_dump_done(struct netlink_callback *cb)
+{
+	if (cb->module)
+		module_put(cb->module);
+	return 0;
+}
+EXPORT_SYMBOL(netlink_dump_done);
+
No need to test cb->module being not NULL


int netlink_dump_done(struct netlink_callback *cb)
{
	module_put(cb->module);
	return 0;
}

Same remark for try_module_get() call
will fix it in v2 patchset.

thanks Eric.

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help