Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753874Ab2K1Uo4 (ORCPT ); Wed, 28 Nov 2012 15:44:56 -0500 Received: from merlin.infradead.org ([205.233.59.134]:58210 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932254Ab2K1Uoy (ORCPT ); Wed, 28 Nov 2012 15:44:54 -0500 Message-ID: <1354135481.21562.98.camel@shinybook.infradead.org> Subject: Re: [PATCH v2 3/3] pppoatm: protect against freeing of vcc From: David Woodhouse To: Krzysztof Mazur Cc: chas williams - CONTRACTOR , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 28 Nov 2012 20:44:41 +0000 In-Reply-To: <20121128201837.GA912@shrek.podlesie.net> References: <1350926091-12642-1-git-send-email-krzysiek@podlesie.net> <1350926091-12642-3-git-send-email-krzysiek@podlesie.net> <1354036592.2534.6.camel@shinybook.infradead.org> <20121127173906.GA11390@shrek.podlesie.net> <1354039349.2534.11.camel@shinybook.infradead.org> <20121127182843.GA11597@shrek.podlesie.net> <20121128201837.GA912@shrek.podlesie.net> Content-Type: multipart/signed; micalg="sha1"; protocol="application/x-pkcs7-signature"; boundary="=-vHXBcHKdunLn6uCbCUgh" X-Mailer: Evolution 3.6.1 (3.6.1-1.fc18) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9142 Lines: 141 --=-vHXBcHKdunLn6uCbCUgh Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2012-11-28 at 21:18 +0100, Krzysztof Mazur wrote: >=20 > +void vcc_pop_any(struct atm_vcc *vcc, struct sk_buff *skb) > +{ > + if (vcc->pop) > + vcc->pop(vcc, skb); if (vcc && vcc->pop) perhaps?=20 --=20 dwmw2 --=-vHXBcHKdunLn6uCbCUgh Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: att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/9OgwgaUGCSsGAQQBgjcQBDGBlzCBlDCBjDELMAkGA1UEBhMC SUwxFjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRp ZmljYXRlIFNpZ25pbmcxODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1l ZGlhdGUgQ2xpZW50IENBAgMEJnowgacGCyqGSIb3DQEJEAILMYGXoIGUMIGMMQswCQYDVQQGEwJJ TDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlm aWNhdGUgU2lnbmluZzE4MDYGA1UEAxMvU3RhcnRDb20gQ2xhc3MgMSBQcmltYXJ5IEludGVybWVk aWF0ZSBDbGllbnQgQ0ECAwQmejANBgkqhkiG9w0BAQEFAASCAQB4MGi4VLXm1O1h0KEoUwtoJ4Up ijri/FGY4FBM1eDnskLf9v5qYs9azpUDpVGet0yB77gvm3SGfTrXroZYw+oRxS6ZLu6z7yPXyift EPRoRD8sSUgwOsyIum7qRKpG27SM5M6TV/rwa8o1g5QEdJ8nxNq4OT01mfonkm4dXMPEo5tFKmnR BYMhIxAw++2f8GSjB8stlDYHhESj9UmmmZT7rZGNV4BYh4njSbAfyJozyEnmlnCsaETL//wj2Kq6 by6vWw1E6AQ4Q89t2dlI8HzigcM4/vu/S5n/hmsCO7AFI0msZ9fwpO7nDkYoR+xeHORO86fz4nMo LUrqKCRnQgnzAAAAAAAA --=-vHXBcHKdunLn6uCbCUgh-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/