Skip to content
Commit 4aa7afb0 authored by Navid Emamdoost's avatar Navid Emamdoost Committed by Corey Minyard
Browse files

ipmi: Fix memory leak in __ipmi_bmc_register



In the impelementation of __ipmi_bmc_register() the allocated memory for
bmc should be released in case ida_simple_get() fails.

Fixes: 68e7e50f ("ipmi: Don't use BMC product/dev ids in the BMC name")
Signed-off-by: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
Message-Id: <20191021200649.1511-1-navid.emamdoost@gmail.com>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 2a21d858
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment