On 11/9/22 9:37 PM, Zhou Guanghui wrote: > If device_register() returns error, the name allocated by the > dev_set_name() need be freed. As described in the comment of > device_register(), we should use put_device() to give up the > reference in the error path. > > Fix this by calling put_device(), the name will be freed in the > kobject_cleanup(), and this patch modified resources will be > released by calling the corresponding callback function in the > device_release(). > > Signed-off-by: Zhou Guanghui <[email protected]> >
Thanks. Reviewed-by: Mike Christie <[email protected]> -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/open-iscsi/f1a0a01b-e934-1ef8-bd23-821d855e976c%40oracle.com.
