Skip to content
Commit 1bf1950c authored by Junjie Mao's avatar Junjie Mao Committed by Borislav Petkov
Browse files

EDAC: Fix the leak of mci->bus->name when bus_register fails



Also use goto labels for all failure paths in
edac_create_sysfs_mci_device and update meaningless labels.

Signed-off-by: default avatarJunjie Mao <junjie.mao@hotmail.com>
Link: http://lkml.kernel.org/r/BLU436-SMTP25291B6B612942A212AEBFE95300@phx.gbl


[ Boris: Use ! for 0 checks and add newlines for less crammed code. ]
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent a4972b1b
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