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

Re: [PATCH][next] devlink: fix memory leak on 'resource'

From: David Miller <davem@davemloft.net>
Date: 2018-01-22 14:27:40
Also in: kernel-janitors, lkml

From: Colin King <redacted>
Date: Mon, 22 Jan 2018 10:31:19 +0000
From: Colin Ian King <redacted>

Currently, if the call to devlink_resource_find returns null then
the error exit path does not free the devlink_resource 'resource'
and a memory leak occurs. Fix this by kfree'ing resource on the
error exit path.

Detected by CoverityScan, CID#1464184 ("Resource leak")

Fixes: d9f9b9a4d05f ("devlink: Add support for resource abstraction")
Signed-off-by: Colin Ian King <redacted>
Applied, thanks Colin.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help