Thread (7 messages) flat view 7 messages, 3 authors, 2017-01-22

Re: [PATCH net-next v5 1/1] net sched actions: Add support for user cookies

From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2017-01-22 19:44:58

On 17-01-22 02:32 PM, Jiri Pirko wrote:
Sun, Jan 22, 2017 at 07:57:17PM CET, jhs@mojatatu.com wrote:
quoted
On 17-01-22 01:13 PM, Florian Fainelli wrote:
quoted
quoted
quoted
+		a->act_cookie->data = nla_memdup(tb[TCA_ACT_COOKIE],
+						 GFP_KERNEL);
+		if (!a->act_cookie->data) {
+			err = -ENOMEM;
+			tcf_hash_release(a, bind);
+			goto err_mod;
+		}
Are not you leaking a->act_cookie here in case nla_memdup() fails here?
yes, I am. Thanks for catching this. V6 coming up.
Btw, you don't have to send cover letter for a single patch. In fact, you
should not.
You can see i write small novels in my commit logs. Do you suggest i
put the git history there as well?

cheers,
jamal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help