]> asedeno.scripts.mit.edu Git - linux.git/commit
ipmi: Fix issues with BMC refcounts
authorCorey Minyard <cminyard@mvista.com>
Fri, 1 Sep 2017 17:52:20 +0000 (12:52 -0500)
committerCorey Minyard <cminyard@mvista.com>
Wed, 27 Sep 2017 21:03:45 +0000 (16:03 -0500)
commit9ca15af3164f3bb84db101fc7843fde25be3288c
treefa0225e27009a07def3dcc57818c157a0ad2f4a5
parenteae4a36a6825302cb08c73c91924cade224d96d3
ipmi: Fix issues with BMC refcounts

BMC device refcounts were not being decremented after fetching from
driver_find_device().  Also, document the use of ipmidriver_mutex
and tighten it's span some by incrementing the BMC's usecount in
the BMC find routines and not later.  This will be important for
future changes where a long mutex hold area will complicate things.

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