In the Linux kernel, the following vulnerability has been resolved:
scsi: target: tcmloop: Fix possible name leak in tcmloopsetuphba_bus()
If deviceregister() fails in tcmloopsetuphbabus(), the name allocated by devsetname() need be freed. As comment of deviceregister() says, it should use putdevice() to give up the reference in the error path. So fix this by calling putdevice(), then the name can be freed in kobjectcleanup(). The 'tlhba' will be freed in tcmlooprelease_adapter(), so it don't need goto error label in this case.