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-next>] [day] [month] [year] [list]
Message-Id: <20220601084501.2900380-1-jiasheng@iscas.ac.cn>
Date:   Wed,  1 Jun 2022 16:45:01 +0800
From:   Jiasheng Jiang <jiasheng@...as.ac.cn>
To:     laurent.pinchart@...asonboard.com
Cc:     andrzej.hajda@...el.com, narmstrong@...libre.com,
        robert.foss@...aro.org, jonas@...boo.se, jernej.skrabec@...il.com,
        airlied@...ux.ie, daniel@...ll.ch, maxime@...no.tech,
        sam@...nborg.org, alsi@...g-olufsen.dk, jagan@...rulasolutions.com,
        biju.das.jz@...renesas.com, l.stach@...gutronix.de,
        dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
        Jiasheng Jiang <jiasheng@...as.ac.cn>
Subject: Re: Re: [PATCH] drm: bridge: adv7511: Add check for mipi_dsi_driver_register

On Wed, Jun 01, 2022 at 02:52:00PM +0800, Laurent Pinchart wrote:
>>  static int __init adv7511_init(void)
>>  {
>> -	if (IS_ENABLED(CONFIG_DRM_MIPI_DSI))
>> -		mipi_dsi_driver_register(&adv7533_dsi_driver);
>> +	int ret;
>> +
>> +	if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
>> +		ret = mipi_dsi_driver_register(&adv7533_dsi_driver);
>> +		if (ret)
>> +			return ret;
>> +	}
>>  
>>  	return i2c_add_driver(&adv7511_driver);
> 
> While at it, should this then call mipi_dsi_driver_unregister() on
> failure ?

Well, as far as I am concerned, the adv7511_exit() in the same file has already dealt with the issue.
Therefore, it might not be necessary to add another mipi_dsi_driver_unregister().

Thanks,
Jiang

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ