Re: crash with cpucontrol/microcode update : Today's -CURRENT
On 2013-08-10 15:02, Konstantin Belousov wrote:
> Try this.
>
> diff --git a/sys/dev/cpuctl/cpuctl.c b/sys/dev/cpuctl/cpuctl.c
> index 742ef0db..4e5abb2 100644
> --- a/sys/dev/cpuctl/cpuctl.c
> +++ b/sys/dev/cpuctl/cpuctl.c
> @@ -346,8 +346,7 @@ update_intel(int cpu, cpuctl_update_args_t *args,
> struct thread *td)
> else
> ret = EEXIST;
> fail:
> - if (ptr != NULL)
> - contigfree(ptr, args->size, M_CPUCTL);
> + free(ptr, M_CPUCTL);
> return (ret);
> }
>
> @@ -476,8 +475,7 @@ update_via(int cpu, cpuctl_update_args_t *args,
> struct thread *td)
> else
> ret = 0;
> fail:
> - if (ptr != NULL)
> - contigfree(ptr, args->size, M_CPUCTL);
> + free(ptr, M_CPUCTL);
> return (ret);
> }
Fixed it.
# service microcode_update onestart
Updating cpucodes...
/usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl0
from rev 0x60c to rev 0x60f... done.
/usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl1
from rev 0x60c to rev 0x60f... done.
/usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl2
from rev 0x60c to rev 0x60f... done.
/usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl3
from rev 0x60c to rev 0x60f... done.
/usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl4
from rev 0x60c to rev 0x60f... done.
/usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl5
from rev 0x60c to rev 0x60f... done.
/usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl6
from rev 0x60c to rev 0x60f... done.
/usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl7
from rev 0x60c to rev 0x60f... done.
Done.
# ^D$
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 (c) E-Mail: ler@lerctr.org
US Mail: 108 Turvey Cove, Hutto, TX 78634-5688
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 4 之 4 篇):