]> asedeno.scripts.mit.edu Git - linux.git/commit
devlink: fix potential memort leak
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Mon, 5 Jun 2017 00:57:21 +0000 (08:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2017 15:24:28 +0000 (11:24 -0400)
commit6044bd4a7d580d4459b992bc6631c817486a1514
treea720b0ac5954bbf1d3bfbb90225c34d35518b41a
parent1e0ce2a1ee0d5fb334e82e80600f1e8e77df525c
devlink: fix potential memort leak

We must free allocated skb when genlmsg_put() return fails.

Fixes: 1555d204e743 ("devlink: Support for pipeline debug (dpipe)")
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c