lkml.org 
[lkml]   [2019]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 106/115] net: seeq: fix crash caused by not set dev.parent
    Date
    From: Thomas Bogendoerfer <tbogendoerfer@suse.de>

    [ 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 <tbogendoerfer@suse.de>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    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
    @@ -734,6 +734,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 */

    \
     
     \ /
      Last update: 2019-05-15 13:53    [W:4.120 / U:0.920 seconds]
    ©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site