]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
platform/x86: dell-wmi: increase severity of some failures
authorMario Limonciello <mario.limonciello@dell.com>
Wed, 1 Nov 2017 19:25:24 +0000 (14:25 -0500)
committerDarren Hart (VMware) <dvhart@infradead.org>
Fri, 3 Nov 2017 23:33:57 +0000 (16:33 -0700)
commitd0bf42d83e9492ffc80108b0913f596dbbd220c0
tree742b0e3eca23dfc0872098a1440cc73ceabe705b
parent722c856d46c6ca74a246b54a72f14751fec01aae
platform/x86: dell-wmi: increase severity of some failures

There is a lot of error checking in place for the format of the WMI
descriptor buffer, but some of the potentially raised issues should
be considered critical failures.

If the buffer size or header don't match, this is a good indication
that the buffer format changed in a way that the rest of the data
should not be relied upon.

For the remaining data set vectors, continue to notate a warning
in undefined results, but as those are fields that the descriptor
intended to refer to other applications, don't fail if they're new
values.

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Reviewed-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/dell-wmi.c