Explorar el Código

[settings] Reject attempts to change a network device's bus ID

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 13 años
padre
commit
a04603a070
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      src/net/netdev_settings.c

+ 2
- 0
src/net/netdev_settings.c Ver fichero

@@ -81,6 +81,8 @@ static int netdev_store ( struct settings *settings, struct setting *setting,
81 81
 		memcpy ( netdev->ll_addr, data, len );
82 82
 		return 0;
83 83
 	}
84
+	if ( setting_cmp ( setting, &busid_setting ) == 0 )
85
+		return -ENOTSUP;
84 86
 
85 87
 	return generic_settings_store ( settings, setting, data, len );
86 88
 }

Loading…
Cancelar
Guardar