[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YqilqYHZmLbhi3o0@kroah.com>
Date: Tue, 14 Jun 2022 17:13:45 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Zhi Song <zhi.song@...edance.com>
Cc: vilhelm.gray@...il.com, rafael@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] isa: put_device after failing to device_register
On Tue, Jun 14, 2022 at 10:57:57PM +0800, Zhi Song wrote:
> device_register() is used to register a device with the system.
>
> We cannot directly free dev after calling this function,
> even if it returns an error.
>
> We should use put_device() to give up the reference
> initialized in this function instead.
Same comments on this one as my last review.
greg k-h
Powered by blists - more mailing lists