Searched hist:b9118b7221ebb12156d2b08d4d5647bc6076d6bb (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/ptp/ |
H A D | ptp_clock.c | b9118b7221ebb12156d2b08d4d5647bc6076d6bb Sun Oct 02 07:04:16 UTC 2016 Christophe Jaillet <christophe.jaillet@wanadoo.fr> ptp: Fix resource leak in case of error
A call to 'ida_simple_remove()' is missing in the error handling path.
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 <christophe.jaillet@wanadoo.fr> Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|