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]
Date:	Wed, 31 Oct 2012 14:56:43 -0400
From:	James Smart <James.Smart@...lex.com>
To:	Jeff Moyer <jmoyer@...hat.com>
CC:	<linux-kernel@...r.kernel.org>,
	"James E.J. Bottomley" <JBottomley@...allels.com>,
	<linux-scsi@...r.kernel.org>
Subject: Re: [patch 09/10] lpfc: use scsi_host_alloc_node

Thanks Jeff.

-- james s


Acked-By: James Smart  <james.smart@...lex.com>


On 10/30/2012 4:14 PM, Jeff Moyer wrote:
> Signed-off-by: Jeff Moyer <jmoyer@...hat.com>
> ---
>   drivers/scsi/lpfc/lpfc_init.c |   10 ++++++----
>   1 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
> index 7dc4218..65956d3 100644
> --- a/drivers/scsi/lpfc/lpfc_init.c
> +++ b/drivers/scsi/lpfc/lpfc_init.c
> @@ -3051,11 +3051,13 @@ lpfc_create_port(struct lpfc_hba *phba, int instance, struct device *dev)
>   	int error = 0;
>   
>   	if (dev != &phba->pcidev->dev)
> -		shost = scsi_host_alloc(&lpfc_vport_template,
> -					sizeof(struct lpfc_vport));
> +		shost = scsi_host_alloc_node(&lpfc_vport_template,
> +					     sizeof(struct lpfc_vport),
> +					     dev_to_node(&phba->pcidev->dev));
>   	else
> -		shost = scsi_host_alloc(&lpfc_template,
> -					sizeof(struct lpfc_vport));
> +		shost = scsi_host_alloc_node(&lpfc_template,
> +					     sizeof(struct lpfc_vport),
> +					     dev_to_node(&phba->pcidev->dev));
>   	if (!shost)
>   		goto out;
>   

--
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