ipmi: Add a limit on the number of users that may use IPMI
authorCorey Minyard <cminyard@mvista.com>
Mon, 28 Mar 2022 16:26:08 +0000 (11:26 -0500)
committerCorey Minyard <cminyard@mvista.com>
Thu, 12 May 2022 15:00:02 +0000 (10:00 -0500)
commit8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82
tree0a09b9c730534ec0bbd72be8c316ec77ab237283
parenta7391ad3572431a354c927cf8896e86e50d7d0bf
ipmi: Add a limit on the number of users that may use IPMI

Each user uses memory, we need limits to avoid a rogue program from
running the system out of memory.

Based on work by Chen Guanqiao <chen.chenchacha@foxmail.com>

Cc: Chen Guanqiao <chen.chenchacha@foxmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c