aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibexec/rc/rc.d/ntpd9
-rw-r--r--stand/kboot/kboot/main.c4
-rw-r--r--sys/dev/mlx5/mlx5_core/mlx5_main.c2
3 files changed, 7 insertions, 8 deletions
diff --git a/libexec/rc/rc.d/ntpd b/libexec/rc/rc.d/ntpd
index 8babda09455c..e7e42da8acc7 100755
--- a/libexec/rc/rc.d/ntpd
+++ b/libexec/rc/rc.d/ntpd
@@ -101,6 +101,7 @@ ntpd_precmd()
# by the admin, we don't add the option. If the file exists in the old
# default location we use that, else we use the new default location.
if can_run_nonroot; then
+ _user="ntpd"
driftopt="-f ${_ntp_default_driftfile}"
elif grep -q "^[ \t]*driftfile" "${ntpd_config}" ||
[ -n "${rc_flags}" ] &&
@@ -114,13 +115,7 @@ ntpd_precmd()
fi
# Set command_args based on the various config vars.
- command_args="-p ${pidfile} -c ${ntpd_config} ${driftopt} -u ${ntpd_user:=ntpd:ntpd}"
-
- # Unset ntpd_user because rc.subr uses $${name}_user to determine
- # whether to invoke su(1) to setuid() to $ntpd_user for us. We want
- # ntpd to do the setuid() itself through the -u argument, above.
- unset ntpd_user
-
+ command_args="-p ${pidfile} -c ${ntpd_config} ${driftopt}"
if checkyesno ntpd_sync_on_start; then
command_args="${command_args} -g"
fi
diff --git a/stand/kboot/kboot/main.c b/stand/kboot/kboot/main.c
index a9ea2d9354c9..65f7b77f1ace 100644
--- a/stand/kboot/kboot/main.c
+++ b/stand/kboot/kboot/main.c
@@ -261,6 +261,10 @@ kboot_find_smbios(void)
ep = buffer + strlen(buffer);
walker = buffer;
while (walker <= ep) {
+ /*
+ * Linux outputs the v3 table first if present, so we will
+ * choose it in priority.
+ */
if (strncmp("SMBIOS3=", walker, 8) == 0)
return((vm_offset_t)strtoull(walker + 8, NULL, 0));
if (strncmp("SMBIOS=", walker, 7) == 0)
diff --git a/sys/dev/mlx5/mlx5_core/mlx5_main.c b/sys/dev/mlx5/mlx5_core/mlx5_main.c
index 09b623b6fde8..2b0c9f584088 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_main.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_main.c
@@ -2142,7 +2142,7 @@ static const struct pci_device_id mlx5_core_pci_table[] = {
{ PCI_VDEVICE(MELLANOX, 0xa2d3) }, /* BlueField integrated ConnectX-5 network controller VF */
{ PCI_VDEVICE(MELLANOX, 0xa2d6) }, /* BlueField-2 integrated ConnectX-6 Dx network controller */
{ PCI_VDEVICE(MELLANOX, 0xa2dc) }, /* BlueField-3 integrated ConnectX-7 network controller */
- { PCI_VDEVICE(MELLANOX, 0xa2df) }, /* BlueField-4 integrated ConnectX-8 network controller */
+ { PCI_VDEVICE(MELLANOX, 0xa2df) }, /* BlueField-4 Family integrated network controller */
{ }
};