mvneta: Acquire the softc lock before clearing the MIB
Reported by: Andrei Martin <andrei.cos.martin@gmail.com> MFC with: caf552a60719
This commit is contained in:
parent
0433870efe
commit
109260d202
@ -1190,7 +1190,9 @@ mvneta_initreg(struct ifnet *ifp)
|
||||
MVNETA_WRITE(sc, MVNETA_PXCX, reg);
|
||||
|
||||
/* clear MIB counter registers(clear by read) */
|
||||
mvneta_sc_lock(sc);
|
||||
mvneta_clear_mib(sc);
|
||||
mvneta_sc_unlock(sc);
|
||||
|
||||
/* Set SDC register except IPGINT bits */
|
||||
reg = MVNETA_SDC_RXBSZ_16_64BITWORDS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user