]> git.dujemihanovic.xyz Git - linux.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)
commitd2c12f56fa97df216e71437b218ffbeeb4dd46aa
treebf9f97d08f841a395cb62f70cdbd6a785d8ad386
parentc33fdfbabb6c930454df017f3cd3507dc1a87d09
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: 059747c245f0 ("ipmi: Add support for IPMB direct messages")
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c