[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151023.062358.1394064585534232669.davem@davemloft.net>
Date: Fri, 23 Oct 2015 06:23:58 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: roy.qing.li@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH][v2] net: sysctl: fix a kmemleak warning
From: roy.qing.li@...il.com
Date: Fri, 23 Oct 2015 20:59:49 +0800
> From: Li RongQing <roy.qing.li@...il.com>
>
> the returned buffer of register_sysctl() is stored into net_header
> variable, but net_header is not used after, and compiler maybe
> optimise the variable out, and lead kmemleak reported the below warning
...
> Add the possible error handle to free the net_header to remove the
> kmemleak warning
>
> Signed-off-by: Li RongQing <roy.qing.li@...il.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists