Skip to content

Commit abda892

Browse files
Thomas Bogendoerfergregkh
Thomas Bogendoerfer
authored andcommitted
net: seeq: fix crash caused by not set dev.parent
[ Upstream commit 5afcd14 ] The old MIPS implementation of dma_cache_sync() didn't use the dev argument, but commit c9eb617 ("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 <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5f80c82 commit abda892

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/seeq/sgiseeq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ static int sgiseeq_probe(struct platform_device *pdev)
735735
}
736736

737737
platform_set_drvdata(pdev, dev);
738+
SET_NETDEV_DEV(dev, &pdev->dev);
738739
sp = netdev_priv(dev);
739740

740741
/* Make private data page aligned */

0 commit comments

Comments
 (0)