From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759088AbcCVL7a (ORCPT ); Tue, 22 Mar 2016 07:59:30 -0400 Received: from mail-vk0-f46.google.com ([209.85.213.46]:34458 "EHLO mail-vk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753924AbcCVL7Q (ORCPT ); Tue, 22 Mar 2016 07:59:16 -0400 MIME-Version: 1.0 In-Reply-To: <20150410102212.GF11182@pengutronix.de> References: <54F8445B.10805@gmail.com> <1425896338-31928-1-git-send-email-mpa@pengutronix.de> <20150410102212.GF11182@pengutronix.de> Date: Tue, 22 Mar 2016 12:59:15 +0100 Message-ID: Subject: Re: [PATCH] w1: gpio: Fix problematic platform_data usage From: Ingo Flaschberger To: Markus Pargmann Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Markus, sorry - missed your reply last year. The patch seems to work. Kind regards, Ingo Flaschberger On Fri, Apr 10, 2015 at 12:22 PM, Markus Pargmann wrote: > Hi, > > On Mon, Mar 09, 2015 at 11:18:58AM +0100, Markus Pargmann wrote: >> pdev->dev.platform_data should not be overwritten by a driver. This >> patch fixes this issue by not using platform_get_pdata to get pdata. The >> DT routine can then simply return a pdata struct with those information. >> >> Without this patch the platform_data may be freed twice, by devres and >> the driver framework. >> >> Reported-by: Ingo Flaschberger >> Cc: >> Signed-off-by: Markus Pargmann > > Did you have time to test this? I would like to send this mainline but a > Tested-by of you would be nice. > > Best Regards, > > Markus > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |