Date: Sun, 4 Nov 2007 00:14:39 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 128600 for review Message-ID: <200711040014.lA40Ednn005385@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128600 Change 128600 by kmacy@kmacy:storage:toestack on 2007/11/04 00:13:55 free toepcb when the refcount goes to zero Affected files ... .. //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_tom.c#4 edit Differences ... ==== //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_tom.c#4 (text+ko) ==== @@ -130,6 +130,14 @@ void toepcb_release(struct toepcb *toep) { + if (toep->tp_refcount == 1) { + /* + * XXX clear our reference on the inpcb + */ + free(toep, M_DEVBUF); + return; + } + atomic_add_acq_int(&toep->tp_refcount, -1); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711040014.lA40Ednn005385>