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] [day] [month] [year] [list]
Message-ID: <519B720F.9020705@cogentembedded.com>
Date:	Tue, 21 May 2013 17:09:35 +0400
From:	Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To:	Libo Chen <libo.chen@...wei.com>
CC:	samuel@...tiz.org, netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org, davem@...emloft.net,
	lizefan@...wei.com
Subject: Re: [PATCH 15/19] drivers/net/irda: add missing platform_driver owner

Hello.

On 21-05-2013 6:42, Libo Chen wrote:

> set the owner of platform_driver, to ensure that the
> caller of driver holds a module refernece

> Signed-off-by: Libo Chen <libo.chen@...wei.com>
> ---
>   drivers/net/irda/bfin_sir.c   |    1 +
>   drivers/net/irda/sh_irda.c    |    1 +
>   drivers/net/irda/sh_sir.c     |    1 +
>   drivers/net/irda/smsc-ircc2.c |    1 +
>   4 files changed, 4 insertions(+), 0 deletions(-)

> diff --git a/drivers/net/irda/bfin_sir.c b/drivers/net/irda/bfin_sir.c
> index 22b4527..bf976f3 100644
> --- a/drivers/net/irda/bfin_sir.c
> +++ b/drivers/net/irda/bfin_sir.c
> @@ -806,6 +806,7 @@ static struct platform_driver bfin_ir_driver = {
>   	.resume  = bfin_sir_resume,
>   	.driver  = {
>   		.name = DRIVER_NAME,
> +		.owner	= THIS_MODULE,

    Either indent last = with space as above, or indent both = with tabs.

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ