Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp468198yba; Wed, 15 May 2019 04:39:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqykU4BxUSG1kUqGBXUrCxbiMdY71x7RYFZk64ZSJMfSA1kk6zGAi13Vx7ezP1KsUXLE6xWm X-Received: by 2002:a17:902:714e:: with SMTP id u14mr37098514plm.218.1557920353596; Wed, 15 May 2019 04:39:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920353; cv=none; d=google.com; s=arc-20160816; b=AKDsEPbmvvxp+yK1FPHOzu6Nm4BaRSg6sy/4uZUcsY7OdYPjBk0UCB7hruijuCy1Fh qEWyKe/McHrHiBPghX+awuaaoLZZ2OOH433yKL4PVg4DYDvSk7sajpPl2KviHWXnCdkf T4sfO/b4bdaTJdX/hh82cXXeDBEztjSW8kaj3eKFbKp+AM5TtXNR8FhHfk6+L+Tdg3+N emVEaarANH37cp70pOPcMxqWMc0UBiyS68GVIvo/f5P8qwjw6lJ2vFVO9zDc2la30Lyv 3I84AeaTAFphDYq4JNAe5FQvjMqKH6SAPyduMtViBspSBSAiuJ1dhDXfPFKQt3oBsfp/ zC+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=y5qveCiIOHBdHqdKkKE3MM6DRQc6OIh71M156Eq75Ms=; b=V/kuuBqv2J5KcecDQGawL2B0D5Tu3kJaMJxxJ1TSiEn/DKDmWL9YBN+n9s2zQkqNIc Tm2iw2vMerFqE8G9qFhToqyAQIlt4Pdbbak/Dt5QnCTsIlnSeeTbUNV0p+OAumwthZpC xpRLFi4yUWeoMF3dI9m5gV2H57LNAKMjlOtR2WPsAS315nr4Hu+wg/ZeBjQbo3/KtxN8 ObRBj1OeA6az+yqHgC3nL3lMdTLDM/Lsqdkyt1yh+thC7iiOKTVlBjNurPp1yrTYyZLy 0TDF6ntsrBUZ07r2L3J9nAE8azMNqkn665eZbPQyPLKre5qm540REpAhIZGx192EpaAw w0Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FVhqW6mP; 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 67si1857566pfe.269.2019.05.15.04.38.59; Wed, 15 May 2019 04:39:13 -0700 (PDT) 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=@kernel.org header.s=default header.b=FVhqW6mP; 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 S1733087AbfEOLcp (ORCPT + 99 others); Wed, 15 May 2019 07:32:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:44602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733073AbfEOLcn (ORCPT ); Wed, 15 May 2019 07:32:43 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ECB712053B; Wed, 15 May 2019 11:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919963; bh=A5n4mTZtTb5EEfrTR3AlfarJ5yVRdt4gFPUi2LZqFk4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FVhqW6mPWJz2lxcvrLyX2jXHM+b9nngX9ReAYeeLmM0elQbfk8kAxE/tJ+E0+mQLY 1ixEe8PX0h7iEafkY/ei1kmBypTIv5t80xB3FsD8KFeiu2nxBaZfYgjWTOrDUd526m iHHbIo41XKXdB6X0BCM+1NSzYBYXClJQKwZY/khE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Bogendoerfer , "David S. Miller" Subject: [PATCH 5.1 22/46] net: seeq: fix crash caused by not set dev.parent Date: Wed, 15 May 2019 12:56:46 +0200 Message-Id: <20190515090624.564026538@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090616.670410738@linuxfoundation.org> References: <20190515090616.670410738@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Bogendoerfer [ Upstream commit 5afcd14cfc7fed1bcc8abcee2cef82732772bfc2 ] The old MIPS implementation of dma_cache_sync() didn't use the dev argument, but commit c9eb6172c328 ("dma-mapping: turn dma_cache_sync into a dma_map_ops method") changed that, so we now need to set dev.parent. Signed-off-by: Thomas Bogendoerfer Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/seeq/sgiseeq.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/seeq/sgiseeq.c +++ b/drivers/net/ethernet/seeq/sgiseeq.c @@ -735,6 +735,7 @@ static int sgiseeq_probe(struct platform } platform_set_drvdata(pdev, dev); + SET_NETDEV_DEV(dev, &pdev->dev); sp = netdev_priv(dev); /* Make private data page aligned */