ipmi:msghandler: Don't acquire a user refcount for queued messages
authorCorey Minyard <corey@minyard.net>
Fri, 21 Mar 2025 20:12:06 +0000 (15:12 -0500)
committerCorey Minyard <corey@minyard.net>
Wed, 7 May 2025 22:25:48 +0000 (17:25 -0500)
commitff2d2bc9f29d26f5eff9b8fdde225fd705f5555f
tree1190e0ae5bb14174654603e2ade1abe916d84c93
parent84fe1ebcc92cf3880130bfe51040769d7931423a
ipmi:msghandler: Don't acquire a user refcount for queued messages

Messages already have a refcount for the user, so there's no need to
account for a new one.

As part of this, grab a refcount to the interface when processing
received messages.  The messages can be freed there, cause the user
then the interface to be freed.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c