freebsd-dev/usr.sbin/cpucontrol
Konstantin Belousov e4e0dad424 cpucontrol: check for the supposed firmware file type and skip
non-regular entry.

do_update() skips entries with DT_DIR type.  This does not eliminate
other entries that might exist in the directory.  More, since NFS
might fill d_type with DT_UNKNOWN, dot and dotdot entries are not
skipped, then mmap(2) call failed for them when update microcode files
are located on NFS.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2019-01-11 08:35:49 +00:00
..
amd10h.c cpucontrol(8): De-duplicate common update logic 2018-11-14 00:21:49 +00:00
amd.c cpucontrol(8): De-duplicate common update logic 2018-11-14 00:21:49 +00:00
amd.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
cpucontrol.8 Make it possible to re-evaluate cpu_features. 2018-01-05 21:06:19 +00:00
cpucontrol.c cpucontrol: check for the supposed firmware file type and skip 2019-01-11 08:35:49 +00:00
cpucontrol.h cpucontrol(8): De-duplicate common update logic 2018-11-14 00:21:49 +00:00
intel.c cpucontrol(8): De-duplicate common update logic 2018-11-14 00:21:49 +00:00
intel.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
Makefile Add support for microcode update on newer AMD CPUs (10h+) 2016-11-02 16:15:49 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
via.c cpucontrol(8): De-duplicate common update logic 2018-11-14 00:21:49 +00:00
via.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00