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

From
Christoph Hellwig <hch@infradead.org>
Date
2021-01-20 10:30:33
Also in
lkml
Reply to
Dinghao Liu, 2021-01-17
On Sun, Jan 17, 2021 at 04:50:17PM +0800, 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 <redacted>
Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
Thread (3 messages) 3 messages, 3 authors, last reply 2021-01-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help