Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1301014imu; Wed, 16 Jan 2019 16:44:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ZVPCgKfu9WvErMEm+uahi6p2Qzrc/2gTxl+KXv6enYTCyTgyg1zzlch0PqtPq2Lt2mvZ9 X-Received: by 2002:a62:6b8a:: with SMTP id g132mr12827523pfc.201.1547685871607; Wed, 16 Jan 2019 16:44:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547685871; cv=none; d=google.com; s=arc-20160816; b=lknJv2+Lre/ZVcfzNKsZdKf8+tJ6pwcsD2qu7Kd8pBqnxYSQpypDIMsbaxo7QCxTMv 7MGiaWI6YguerI18Bm2AYOUcMCsdXOc+L1LMRT28kBzjdUeouErIHewoINEcg9yT7Xui IkpTMByTq0ufmAktfi9ZXktZtciEH3NsKBcpFuVzQvfZqo8ckTLnViG6EszUSY/CWjxn xDupYEOpar70++HJCunQ+snkxtqK27ASi4y1a3WlIXuPf1sNGuFqjzI9sx5oAdkyMdQ4 DvZyM7dy1uxuJvgUReld1KS/Eq4ev9MDhahkG83w+r3Er46RqXkFsuO+cgaDNbMaJw5l X3GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bR5RZbwLk5HW0kBwtAVbgiXHHXAJhfO4QSLDYgpU2/s=; b=DG7+2s8TCMta4fyylo7u1ySz15f7Xka5mdwQ+8o4ioibv/aPYCuq/DIHR9w6uc386S o2d/3ojwzl7kQxZ6NsxcPzIbj4V4Egb8brcr6EaRDs6bAqHB4zc++W0AWnN4nV32sgGo bxdwEyWDUDaa5AO0oK53iYXAHIHY2gTunPd7YfbJuHhOFv2ECK/0CZs5qF5JmzIFyLAt NjzeK6cOoGz24pn9qheYi+So60S1IJkYm8HBheCZUPF91HESlXSLSnflnomCiCF9jez6 mQlhZw1bAXa++F9Y503/b7WE+jkjBDkRsJz8mYoI2MQCb3PDEycyFBxE8SzzOwFXBMGj jDpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=2vP9VbAc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c26si7496805pgm.210.2019.01.16.16.44.12; Wed, 16 Jan 2019 16:44:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=2vP9VbAc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732986AbfAPWPH (ORCPT + 99 others); Wed, 16 Jan 2019 17:15:07 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:45895 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732540AbfAPWPH (ORCPT ); Wed, 16 Jan 2019 17:15:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=bR5RZbwLk5HW0kBwtAVbgiXHHXAJhfO4QSLDYgpU2/s=; b=2vP9VbAcPhHZjE7DxO4KgoWWy92/hoY+LQiEeeW9MevvC3ReZaclfM2yFbQAG+G0LDUqNAOuqhkGUv1pT0BdT7r8YhHX1a+sV7ofi3DFa9NUorCEyUQn/ZphN6TSTcvjI0Tp1/NpiTRtYqIbxqzBQS4BO8xFzKkVNnD0prL/Poc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1gjtSe-0002el-DW; Wed, 16 Jan 2019 23:15:00 +0100 Date: Wed, 16 Jan 2019 23:15:00 +0100 From: Andrew Lunn To: Hauke Mehrtens Cc: Johan Hovold , Vivien Didelot , Florian Fainelli , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable Subject: Re: [PATCH 1/3] net: dsa: lantiq_gswip: fix use-after-free on failed probe Message-ID: <20190116221500.GO29244@lunn.ch> References: <20190116102335.30433-1-johan@kernel.org> <20190116102335.30433-2-johan@kernel.org> <20190116150009.GE25731@lunn.ch> <1e158c63-c578-1eb3-916e-d6d5a477270e@hauke-m.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1e158c63-c578-1eb3-916e-d6d5a477270e@hauke-m.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > This is correct. But it would be nice if somebody in the future could > > move the disabling of the switch to the inverse of the gswip_setup() > > function to make the code symmetrical. > > Should we add an uninit callback? Yes, that would be good. It looks like lan9303-core.c could use it as well for lan9303_disable_processing(chip); Thanks Andrew