lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f8ffca37-6029-6103-e3cf-0c2c62d04485@kernel.org>
Date:   Tue, 15 Feb 2022 12:08:26 +0100
From:   Jiri Slaby <jirislaby@...nel.org>
To:     Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc:     linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Qing Wang <wangqing@...o.com>
Subject: Re: [PATCH v1 1/1] serial: 8250_mid: Balance reference count for PCI
 DMA device

On 15. 02. 22, 11:31, Andy Shevchenko wrote:
> On Tue, Feb 15, 2022 at 12:29:49PM +0200, Andy Shevchenko wrote:
>> On Tue, Feb 15, 2022 at 11:11:41AM +0100, Jiri Slaby wrote:
>>> On 15. 02. 22, 11:09, Andy Shevchenko wrote:
>>>> The pci_get_slot() increases its reference count, the caller
>>>> must decrement the reference count by calling pci_dev_put().
>>
>>> And what about the -EINVAL case?
>>
>> What about it? The ->probe() calls ->exit() in its error path.
>> Or did I miss something?
> 
> Or you mean that we call pci_dev_put() on NULL pointer?
> This is completely valid case and handled in the callee.

No, I mixed up patches :P. This was meant as a comment to
"serial: 8250_lpss: Balance reference count for PCI DMA device"

byt_serial_exit() isn't called when byt_serial_setup() fails with EINVAL 
if I'm looking correctly.

thanks,
-- 
js
suse labs

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ