Commit 9f73bd1
devlink: Avoid overwriting port attributes of registered port
Cited commit in fixes tag overwrites the port attributes for the
registered port.
Avoid such error by checking registered flag before setting attributes.
Fixes: 71ad8d5 ("devlink: Replace devlink_port_attrs_set parameters with a struct")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20201111034744.35554-1-parav@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 9e2b7fa commit 9f73bd1
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8254 | 8254 | | |
8255 | 8255 | | |
8256 | 8256 | | |
8257 | | - | |
8258 | | - | |
8259 | 8257 | | |
8260 | 8258 | | |
8261 | 8259 | | |
| |||
8279 | 8277 | | |
8280 | 8278 | | |
8281 | 8279 | | |
| 8280 | + | |
| 8281 | + | |
8282 | 8282 | | |
8283 | 8283 | | |
8284 | 8284 | | |
| |||
8301 | 8301 | | |
8302 | 8302 | | |
8303 | 8303 | | |
| 8304 | + | |
| 8305 | + | |
8304 | 8306 | | |
8305 | 8307 | | |
8306 | 8308 | | |
| |||
8326 | 8328 | | |
8327 | 8329 | | |
8328 | 8330 | | |
| 8331 | + | |
| 8332 | + | |
8329 | 8333 | | |
8330 | 8334 | | |
8331 | 8335 | | |
| |||
0 commit comments