[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bfd373f2-8101-d1a1-549b-9163718ec658@kernel.dk>
Date: Sun, 24 Jan 2021 21:36:08 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Dinghao Liu <dinghao.liu@....edu.cn>, kjlu@....edu
Cc: Jan Kara <jack@...e.cz>, Hannes Reinecke <hare@...e.de>,
Johannes Thumshirn <johannes.thumshirn@....com>,
Ming Lei <ming.lei@...hat.com>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] block: Fix an error handling in add_partition
On 1/17/21 1:50 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().
Applied for 5.11, thanks.
--
Jens Axboe
Powered by blists - more mailing lists