HomeFreeBSD

umass: fix a cam_sim leak in error case

Description

umass: fix a cam_sim leak in error case

While debugging a hang I noticed that in case of error in
umass_cam_attach_sim() we miss a cam_sim_free() call.
Added that to not leak resources.

Reviewed by: hselasky
MFC after: 3 days
Differential Revision: D26287

Details

Provenance
bzAuthored on
Reviewer
hselasky
Differential Revision
D26287: umass: fix a leak in error case and enhance debugging
Parents
rS365333: cam_sim: harmonize code related to acquiring a mtx
Branches
Unknown
Tags
Unknown