Re: net: sctp: possible dereference after freeing

2013-10-19 Thread Vlad Yasevich
On Oct 19, 2013, at 7:49 AM, Geyslan Gregório Bem wrote: > 2013/10/19 Geyslan Gregório Bem : >> Hi maintainers, >> >> I would like to know if these are catches: >> >> /net/sctp/endpointola.c (281) >> static void sctp_endpoint_destroy(struct sctp_endpoint *ep) >> { >>struct sock *sk; >> ..

Re: net: sctp: possible dereference after freeing

2013-10-19 Thread Geyslan Gregório Bem
2013/10/19 Geyslan Gregório Bem : > Hi maintainers, > > I would like to know if these are catches: > > /net/sctp/endpointola.c (281) > static void sctp_endpoint_destroy(struct sctp_endpoint *ep) > { > struct sock *sk; > ... > kfree(ep); > SCTP_DBG_OBJCNT_DEC(ep); > } > > The 'ep' object

net: sctp: possible dereference after freeing

2013-10-19 Thread Geyslan Gregório Bem
Hi maintainers, I would like to know if these are catches: /net/sctp/endpointola.c (281) static void sctp_endpoint_destroy(struct sctp_endpoint *ep) { struct sock *sk; ... kfree(ep); SCTP_DBG_OBJCNT_DEC(ep); } The 'ep' object counter is being decremented?! Is the kfree to be there in