Return-Path: From: "Li, Nami" To: Luiz Augusto von Dentz CC: "linux-bluetooth@vger.kernel.org" , "Liu, Haijun" , "Fan, Hong" Subject: RE: [PATCH obexd] Fix crash introduced by f5279bfcedd669bc5d4e88cc1c59807c92226dfb Date: Tue, 21 Jun 2011 10:19:24 +0000 Message-ID: References: <1308645454-2724-1-git-send-email-luiz.dentz@gmail.com> <1308645454-2724-2-git-send-email-luiz.dentz@gmail.com> In-Reply-To: Content-Type: text/plain; charset="gb2312" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: SGksIEx1aXoNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEx1aXogQXVndXN0 byB2b24gRGVudHogW21haWx0bzpsdWl6LmRlbnR6QGdtYWlsLmNvbV0gDQpTZW50OiAyMDExxOo2 1MIyMcjVIDE3OjQ4DQpUbzogTGksIE5hbWkNCkNjOiBsaW51eC1ibHVldG9vdGhAdmdlci5rZXJu ZWwub3JnDQpTdWJqZWN0OiBSZTogW1BBVENIIG9iZXhkXSBGaXggY3Jhc2ggaW50cm9kdWNlZCBi eSBmNTI3OWJmY2VkZDY2OWJjNWQ0ZTg4Y2MxYzU5ODA3YzkyMjI2ZGZiDQoNCkhpIE5hbWksDQoN CjIwMTEvNi8yMSBMaSwgTmFtaSA8bmFtaUBxY2EucXVhbGNvbW0uY29tPjoNCj4gSGksDQo+DQo+ IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGxpbnV4LWJsdWV0b290aC1vd25l ckB2Z2VyLmtlcm5lbC5vcmcgDQo+IFttYWlsdG86bGludXgtYmx1ZXRvb3RoLW93bmVyQHZnZXIu a2VybmVsLm9yZ10gT24gQmVoYWxmIE9mIEx1aXogDQo+IEF1Z3VzdG8gdm9uIERlbnR6DQo+IFNl bnQ6IDIwMTHE6jbUwjIxyNUgMTY6MzgNCj4gVG86IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtlcm5l b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