Skip to content
Snippets Groups Projects
Select Git revision
  • ba47d845d715a010f7b51f6f89bae32845e6acb7
  • x86_1
  • gitlab_ci
  • next-20240221_
  • bpf2
  • bpf0
  • bpf-for-next-20240221
  • bpf1
  • next-20240207_
  • memwatchv30
  • memwatchv27
  • poc-v27
  • memwatchv26_
  • memwatchv26-michal
  • poc-v26
  • poc-6.4
  • memwatchv26
  • memwatchv25
  • poc
  • memwatchv24
  • memwatchv23
  • next-20221219
  • v5.16-rc4
  • v5.16-rc3
  • v5.16-rc2
  • v5.16-rc1
  • v5.15
  • v5.15-rc7
  • v5.15-rc6
  • v5.15-rc5
  • v5.15-rc4
  • v5.15-rc3
  • v5.15-rc2
  • v5.15-rc1
  • v5.14
  • v5.14-rc7
  • v5.14-rc6
  • v5.14-rc5
  • v5.14-rc4
  • v5.14-rc3
  • v5.14-rc2
41 results

linux-mainline

user avatar
Ben Hutchings authored and Linus Torvalds committed
Move the calls to memcpy_fromio() up into the loop in
dmi_scan_machine(), and move the signature checks back down into
dmi_decode().  We need to check at 16-byte intervals but keep a 32-byte
buffer for an SMBIOS entry, so shift the buffer after each iteration.

Merge smbios_present() into dmi_present(), so we look for an SMBIOS
signature at the beginning of the given buffer and then for a DMI
signature at an offset of 16 bytes.

[artem.savkov@gmail.com: use proper buf type in dmi_present()]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Reported-by: default avatarTim McGrath <tmhikaru@gmail.com>
Tested-by: default avatarTim Mcgrath <tmhikaru@gmail.com>
Cc: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Signed-off-by: default avatarArtem Savkov <artem.savkov@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
79bae42d
History
Name Last commit Last update