[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170110.201958.2241956529987896253.davem@davemloft.net>
Date: Tue, 10 Jan 2017 20:19:58 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: f.fainelli@...il.com
Cc: netdev@...r.kernel.org, vivien.didelot@...oirfairelinux.com,
andrew@...n.ch
Subject: Re: [PATCH net] net: dsa: Ensure validity of dst->ds[0]
From: Florian Fainelli <f.fainelli@...il.com>
Date: Mon, 9 Jan 2017 11:58:34 -0800
> It is perfectly possible to have non zero indexed switches being present
> in a DSA switch tree, in such a case, we will be deferencing a NULL
> pointer while dsa_cpu_port_ethtool_{setup,restore}. Be more defensive
> and ensure that dst->ds[0] is valid before doing anything with it.
>
> Fixes: 0c73c523cf73 ("net: dsa: Initialize CPU port ethtool ops per tree")
> Signed-off-by: Florian Fainelli <f.fainelli@...il.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists