[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201006071637.o57GbqWd002514@thirdoffive.cmf.nrl.navy.mil>
Date: Mon, 07 Jun 2010 12:37:52 -0400
From: "Chas Williams (CONTRACTOR)" <chas@....nrl.navy.mil>
To: David Woodhouse <dwmw2@...radead.org>
cc: linux-atm-general@...ts.sourceforge.net, netdev@...r.kernel.org
Subject: Re: [Linux-ATM-General] RX/close vcc race with solos/atmtcp/usbatm/he
In message <1275926647.17903.5077.camel@...book.infradead.org>,David Woodhouse
writes:
>You can still hit the oops that way -- br2684_push() is setting
>vcc->user_back to NULL before the final sock_put() anyway, and that's
>what was causing the oops.
i dont understand. if you do a sock_hold() in find_vcc(), and then call
vcc->push() you should be able to call vcc->push() and then sock_put().
the solos driver is broken since the result find_vcc() does not do
anything to keep the resulting vcc from evaporating. find_vcc() should
be taking a reference on the vcc, or the lock needs to held around
any usage of the results from find_vcc().
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists