Return-Path: MIME-Version: 1.0 In-Reply-To: <2d5a2c100906231156w72a0e69dqfa6c197bfb1d5674@mail.gmail.com> References: <2d5a2c100906090617m167d3815pae998d06bdbd6646@mail.gmail.com> <2d5a2c100906211047n31b9d4dajac290601c184380b@mail.gmail.com> <1245611096.15367.76.camel@violet> <2d5a2c100906221449y6e37cb19x1bc27085bac318f4@mail.gmail.com> <2d5a2c100906221608v5e3e3d8aydf66b13826ad88fa@mail.gmail.com> <2d5a2c100906230651m679ccfat5bf4bfb20c130955@mail.gmail.com> <1245768036.15367.78.camel@violet> <20090623200401.6c7e5ea6@stoetzler> <2d5a2c100906231113p23a7249u13de2ecd2a0d5482@mail.gmail.com> <2d5a2c100906231156w72a0e69dqfa6c197bfb1d5674@mail.gmail.com> Date: Thu, 25 Jun 2009 10:14:05 -0300 Message-ID: <2d5a2c100906250614k798239b9v901166c2382a6b1c@mail.gmail.com> Subject: Re: regression introduced on v2.6.30-rc1 From: Luiz Augusto von Dentz To: Stefan Seyfried Cc: linux-bluetooth@vger.kernel.org, Marcel Holtmann Content-Type: multipart/mixed; boundary=0016364ee4e696323d046d2bffe8 List-ID: --0016364ee4e696323d046d2bffe8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Patch now against updated bluetooth-testing --=20 Luiz Augusto von Dentz Engenheiro de Computa=E7=E3o --0016364ee4e696323d046d2bffe8 Content-Type: text/x-diff; charset=US-ASCII; name="0001-bluetooth-Fix-rejected-connection-not-disconnecting-.patch" Content-Disposition: attachment; filename="0001-bluetooth-Fix-rejected-connection-not-disconnecting-.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fwdhvc8r1 RnJvbSA4N2Q5MmYwN2Q4Yjk0ODBmYzY1NGQ5MmIxMTI4NDdhZmQxYzQyNTQzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMdWl6IEF1Z3VzdG8gdm9uIERlbnR6IDxsdWl6LmRlbnR6QG9w ZW5ib3Nz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