Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5146135yba; Mon, 13 May 2019 06:13:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnaNDI+cUnIe5YpYXmDBzFzNZLYjPCxp7dIM5MFErSOOhTH2FAwq05m5m3f3is3NBCIPN9 X-Received: by 2002:a63:88c7:: with SMTP id l190mr30954562pgd.244.1557753212740; Mon, 13 May 2019 06:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557753212; cv=none; d=google.com; s=arc-20160816; b=oTGfnTKpBgMK5kCDxozotCaD37t9UGRfCNKliHuPJklz2EzlCZnp8pa6xASPNEJ+ye hXpjQqhBfQn6n44piK9zYpO6O7mh8u5pOkG0Z25dsD5c7tyqaxnj6WffbwNgm+0V/3DX IQlz8bj69UbSfleb17TN1g11qUYHIdPS+aL1F3ddlZUpwaOKKMOo4A6WZRUHqQDGfxpe K0NC2h1K3TjIIuT5azi24saiL5Lj5Ym7O60D2lvJx5sH8sYFey6rSfOF/qXvn3W3KPgY iKehb499fCcu/IU5Xldlh+3GaZbgyeOTBot74q4LKEifOJ2vDlvCBkrIYb+aHPTjvKmD c6wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=2XkV34LCyBZdBoxnyBuMECp+nFg389pPQWem+mK5DN0=; b=Hxwq4x8ZnLL83H+7tbox/+/rZr/OIGSAHgk9u3iGv2Zm0GKmj2F8X1xbazNBoV8ucS dL1T67h+LT+L2p+hIhobwxcC4KfUXAYmwk5u7mqTS9Ln27+GEFJQ9rc+/jMPIMMR/arY kjvWkG+BYMff8LmAIJezo2EHuTHtbKHYGHxQOSGicfMWbDC2HriLXvKARAA6XLl2ESM0 7FdRD6rWljESrdgeEIYXwtetumwzBRroUH4Isl/KQWt8SrOpFaBzot2M9uBM/eFAOGY4 37f0erxhP501gDjhqKcyVGk1QUZ42T3AZmuX5zES+/onXYdAR6htuBtP8X0J94triPrn 7wsg== ARC-Authentication-Results: i=1; mx.google.com; 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 y1si7381979pfb.264.2019.05.13.06.13.14; Mon, 13 May 2019 06:13:32 -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; 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 S1729416AbfEMLPc (ORCPT + 99 others); Mon, 13 May 2019 07:15:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:49006 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728906AbfEMLPa (ORCPT ); Mon, 13 May 2019 07:15:30 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3AAB5AD7C; Mon, 13 May 2019 11:15:29 +0000 (UTC) From: Thomas Bogendoerfer To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net] net: seeq: fix crash caused by not set dev.parent Date: Mon, 13 May 2019 13:15:17 +0200 Message-Id: <20190513111517.14780-1-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.13.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/seeq/sgiseeq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/seeq/sgiseeq.c b/drivers/net/ethernet/seeq/sgiseeq.c index 70cce63a6081..696037d5ac3d 100644 --- a/drivers/net/ethernet/seeq/sgiseeq.c +++ b/drivers/net/ethernet/seeq/sgiseeq.c @@ -735,6 +735,7 @@ static int sgiseeq_probe(struct platform_device *pdev) } platform_set_drvdata(pdev, dev); + SET_NETDEV_DEV(dev, &pdev->dev); sp = netdev_priv(dev); /* Make private data page aligned */ -- 2.13.7