[GIT PULL] IPMI bug fixes for 4.19

From: Corey Minyard
Date: Mon May 23 2022 - 07:44:44 EST


The following changes since commit a7391ad3572431a354c927cf8896e86e50d7d0bf:

Merge tag 'iomm-fixes-v5.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu (2022-05-04 11:04:52 -0700)

are available in the Git repository at:

https://github.com/cminyard/linux-ipmi.git tags/for-linus-4.19-1

for you to fetch changes up to a508e33956b538e034ed5df619a73ec7c15bda72:

ipmi:ipmb: Fix refcount leak in ipmi_ipmb_probe (2022-05-12 10:00:04 -0500)

----------------------------------------------------------------
Fixes for IPMI

Add limits on the number of users and messages, plus sysfs interfaces
to control those limits.

Other than that, little cleanups, use dev_xxx() insted of pr_xxx(),
create initializers for structures, fix a refcount leak, etc.

----------------------------------------------------------------
Corey Minyard (11):
ipmi: Add a limit on the number of users that may use IPMI
ipmi: Limit the number of message a user may have outstanding
ipmi: Add a sysfs interface to view the number of users
ipmi: Add a sysfs count of total outstanding messages for an interface
ipmi:ssif: Check for NULL msg when handling events and messages
ipmi: Add an intializer for ipmi_smi_msg struct
ipmi: Add an intializer for ipmi_recv_msg struct
ipmi: Fix pr_fmt to avoid compilation issues
ipmi: Convert pr_debug() to dev_dbg()
ipmi:si: Convert pr_debug() to dev_dbg()
ipmi: Make two logs unique

Miaoqian Lin (1):
ipmi:ipmb: Fix refcount leak in ipmi_ipmb_probe

Stephen Kitt (1):
ipmi: use simple i2c probe function

Yu Zhe (1):
ipmi: remove unnecessary type castings

drivers/char/ipmi/ipmb_dev_int.c | 5 +-
drivers/char/ipmi/ipmi_ipmb.c | 6 +-
drivers/char/ipmi/ipmi_msghandler.c | 111 ++++++++++++++++++++++++++++++++----
drivers/char/ipmi/ipmi_poweroff.c | 8 +--
drivers/char/ipmi/ipmi_si_intf.c | 17 +++---
drivers/char/ipmi/ipmi_ssif.c | 33 +++++++++--
drivers/char/ipmi/ipmi_watchdog.c | 28 ++++-----
include/linux/ipmi.h | 5 ++
include/linux/ipmi_smi.h | 6 ++
9 files changed, 165 insertions(+), 54 deletions(-)