Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752585AbcJMIOi (ORCPT ); Thu, 13 Oct 2016 04:14:38 -0400 Received: from lb2-smtp-cloud6.xs4all.net ([194.109.24.28]:48151 "EHLO lb2-smtp-cloud6.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752508AbcJMIOc (ORCPT ); Thu, 13 Oct 2016 04:14:32 -0400 Message-ID: <1476346316.3526.29.camel@tiscali.nl> Subject: Re: [PATCH 3.4 088/125] ser_gigaset: fix deallocation of platform device structure From: Paul Bolle To: Zefan Li , lizf@kernel.org, stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Tilman Schmidt , "David S. Miller" Date: Thu, 13 Oct 2016 10:11:56 +0200 In-Reply-To: <57FEF708.2060405@huawei.com> References: <1476275600-4626-1-git-send-email-lizf@kernel.org> <1476275641-4697-88-git-send-email-lizf@kernel.org> <1476276740.9670.19.camel@tiscali.nl> <57FEF708.2060405@huawei.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 27 On Thu, 2016-10-13 at 10:52 +0800, Zefan Li wrote: > On 2016/10/12 20:52, Paul Bolle wrote: > > There has been a follow up for this fix. I'll have to dive into my > > archive to see why that was needed. > > > > It was complicated, because there has been a short period in which this > > fix was correct. Something like that, I'm speaking from memory. > > (Perhaps Tilman's memory is less imperfect.) > > > > I'll try get back to this shortly (in a day or so). > > > > Thanks for looking into this. So what I think you also need _on top of_ this patch: - commit 8aeb3c3d655e ("ser_gigaset: remove unnecessary kfree() calls from release method"), for context changes; and - commit 8d2c3ab44456 ("ser_gigaset: use container_of() instead of detour"), the proper fix. I could not get v3.4 to build _at all_ on my current Fedora 24 machine. (v3.4 was probably released when Fedora 16 was still shiny and new.) Lack of coffee? So I've only visually inspected these three commits on top of v3.4.112. Is that acceptable to you? Paul Bolle