Skip to content
Commit 7a17cc89 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Paul Gortmaker
Browse files

net: stmmac: fix notifier registration

commit 474a31e1 upstream.

We cannot register the same netdev notifier multiple times when probing
stmmac devices. Register the notifier only once in module init, and also
make debugfs creation/deletion safe against simultaneous notifier call.

Fixes: 481a7d15

 ("stmmac: debugfs entry name is not be changed when udev rename device name.")
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 8969e90f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment