@@ -2273,7 +2273,7 @@ static int sis900_set_config(struct net_device *dev, struct ifmap *map)
22732273 * (which seems to be different from the ifport(pcmcia) definition) */
22742274 switch (map -> port ){
22752275 case IF_PORT_UNKNOWN : /* use auto here */
2276- dev -> if_port = map -> port ;
2276+ WRITE_ONCE ( dev -> if_port , map -> port ) ;
22772277 /* we are going to change the media type, so the Link
22782278 * will be temporary down and we need to reflect that
22792279 * here. When the Link comes up again, it will be
@@ -2294,7 +2294,7 @@ static int sis900_set_config(struct net_device *dev, struct ifmap *map)
22942294 break ;
22952295
22962296 case IF_PORT_10BASET : /* 10BaseT */
2297- dev -> if_port = map -> port ;
2297+ WRITE_ONCE ( dev -> if_port , map -> port ) ;
22982298
22992299 /* we are going to change the media type, so the Link
23002300 * will be temporary down and we need to reflect that
@@ -2315,7 +2315,7 @@ static int sis900_set_config(struct net_device *dev, struct ifmap *map)
23152315
23162316 case IF_PORT_100BASET : /* 100BaseT */
23172317 case IF_PORT_100BASETX : /* 100BaseTx */
2318- dev -> if_port = map -> port ;
2318+ WRITE_ONCE ( dev -> if_port , map -> port ) ;
23192319
23202320 /* we are going to change the media type, so the Link
23212321 * will be temporary down and we need to reflect that
0 commit comments