summaryrefslogtreecommitdiffstats
path: root/crypto/ecdh.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-07-24 19:49:23 +0200
committerDavid S. Miller <davem@davemloft.net>2017-07-25 02:36:27 +0200
commit9f9e772da2db279c8d8c9206d271b8009c9093f4 (patch)
tree336084339766119bfac6749d46d49f951e012021 /crypto/ecdh.c
parentpacket: fix use-after-free in prb_retire_rx_blk_timer_expired() (diff)
downloadlinux-9f9e772da2db279c8d8c9206d271b8009c9093f4.tar.xz
linux-9f9e772da2db279c8d8c9206d271b8009c9093f4.zip
net: dsa: Initialize ds->cpu_port_mask earlier
The mt7530 driver has its dsa_switch_ops::get_tag_protocol function check ds->cpu_port_mask to issue a warning in case the configured CPU port is not capable of supporting tags. After commit 14be36c2c96c ("net: dsa: Initialize all CPU and enabled ports masks in dsa_ds_parse()") we slightly re-arranged the initialization such that this was no longer working. Just make sure that ds->cpu_port_mask is set prior to the first call to get_tag_protocol, thus restoring the expected contract. In case of error, the CPU port bit is cleared. Fixes: 14be36c2c96c ("net: dsa: Initialize all CPU and enabled ports masks in dsa_ds_parse()") Reported-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/ecdh.c')
0 files changed, 0 insertions, 0 deletions