Re: [PATCH] [v3] block: Fix an error handling in add_partition

From: Chaitanya Kulkarni
Date: Mon Jan 18 2021 - 23:58:52 EST


On 1/17/21 1:00 AM, Dinghao Liu wrote:
> Once we have called device_initialize(), we should use put_device() to
> give up the reference on error, just like what we have done on failure
> of device_add().
>
> Signed-off-by: Dinghao Liu <dinghao.liu@xxxxxxxxxx>
Looks good.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>