Re: [PATCH] ptp: Fix resource leak in case of error

2016-10-03 Thread David Miller
From: Christophe JAILLET Date: Sun, 2 Oct 2016 09:04:16 +0200 > 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

Re: [PATCH] ptp: Fix resource leak in case of error

2016-10-03 Thread Richard Cochran
On Sun, Oct 02, 2016 at 09:04:16AM +0200, Christophe JAILLET wrote: > 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. Acked-by:

[PATCH] ptp: Fix resource leak in case of error

2016-10-02 Thread Christophe JAILLET
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(...);