[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170828.212021.1488966345817697383.davem@davemloft.net>
Date: Mon, 28 Aug 2017 21:20:21 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: f.fainelli@...il.com
Cc: netdev@...r.kernel.org, andrew@...n.ch,
vivien.didelot@...oirfairelinux.com, dan.carpenter@...cle.com
Subject: Re: [PATCH net] net: dsa: Don't dereference dst->cpu_dp->netdev
From: Florian Fainelli <f.fainelli@...il.com>
Date: Mon, 28 Aug 2017 17:10:51 -0700
> If we do not have a master network device attached dst->cpu_dp will be
> NULL and accessing cpu_dp->netdev will create a trace similar to the one
> below. The correct check is on dst->cpu_dp period.
...
> Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
> Fixes: 6d3c8c0dd88a ("net: dsa: Remove master_netdev and use dst->cpu_dp->netdev")
> Signed-off-by: Florian Fainelli <f.fainelli@...il.com>
Applied, thanks Florian.
Powered by blists - more mailing lists