diff options
author | Christophe JAILLET <[email protected]> | 2016-10-02 08:01:22 +0200 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2016-10-05 15:16:54 +0200 |
commit | 587680c1c52d73bc7d5dbba2dcfadacb7a3f6b0e (patch) | |
tree | 0706cf37def55b3a4a37b2b2e51f5f7899101a05 /net/unix/sysctl_net_unix.c | |
parent | 0546d685f07cc4fc5748fd36e57d167877c2842d (diff) |
drm: Release resources with a safer function
We should use 'ida_simple_remove()' instead of 'ida_remove()' when freeing
resources allocated with 'ida_simple_get()'.
This as been spotted with the following coccinelle script which tries to
detect missing 'ida_simple_remove()' call in error handling paths.
///////////////
@@
expression x;
identifier l;
@@
* x = ida_simple_get(...);
...
if (...) {
...
}
...
if (...) {
...
goto l;
}
...
* l: ... when != ida_simple_remove(...);
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions