Pārlūkot izejas kodu

[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 13 gadus atpakaļ
vecāks
revīzija
a04603a070
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      src/net/netdev_settings.c

+ 2
- 0
src/net/netdev_settings.c Parādīt failu

@@ -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
 }

Notiek ielāde…
Atcelt
Saglabāt