]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: fix IPMI_SMI_MSG_TYPE_IPMB_DIRECT response length checking
authorCorey Minyard <cminyard@mvista.com>
Thu, 25 Nov 2021 14:47:27 +0000 (08:47 -0600)
committerCorey Minyard <cminyard@mvista.com>
Fri, 26 Nov 2021 03:17:55 +0000 (21:17 -0600)
commitfcb6e5b98199e52f72ac3b0baee1705c4e6342bb
treebf9f97d08f841a395cb62f70cdbd6a785d8ad386
parentd019e39ff738baa2820ad5544150edcd579a3589
ipmi: fix IPMI_SMI_MSG_TYPE_IPMB_DIRECT response length checking

A couple of issues:

The tested data sizes are wrong; during the design that changed and this
got missed.

The formatting of the reponse couldn't use the normal one, it has to be
an IPMB formatted response.

Reported-by: Jakub Kicinski <kuba@kernel.org>
Fixes: cbb891cfd0ad ("ipmi: Add support for IPMB direct messages")
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c