aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorQiushi Wu <[email protected]>2020-06-13 14:05:33 -0500
committerMichael S. Tsirkin <[email protected]>2020-07-29 13:13:50 -0400
commitfe3c60684377d5ad9b0569b87ed3e26e12c8173b (patch)
tree2cc428956b90a91a15ff8d4c09ee523a6bdcb591 /lib/mpi/mpi-add.c
parent92ed301919932f777713b9172e525674157e983d (diff)
firmware: Fix a reference count leak.
kobject_init_and_add() takes reference even when it fails. If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Callback function fw_cfg_sysfs_release_entry() in kobject_put() can handle the pointer "entry" properly. Signed-off-by: Qiushi Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions