Re: [PATCH v2 10/10] block: put_device() if device_add() fails

From: Bart Van Assche
Date: Sun Apr 19 2020 - 19:40:58 EST


On 4/19/20 12:45 PM, Luis Chamberlain wrote:
Through code inspection I've found that we don't put_device() if
device_add() fails, and this must be done to decrement its refcount.

Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>