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  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]
Date:   Mon, 25 Mar 2019 22:17:52 -0400
From:   "Martin K. Petersen" <>
To:     Arnd Bergmann <>
Cc:     James Smart <>,
        Dick Kennedy <>,
        "James E.J. Bottomley" <>,
        "Martin K. Petersen" <>,
        Hannes Reinecke <>,,
Subject: Re: [PATCH] scsi: lpfc: avoid uninitialized variable warning


> clang -Wuninitialized incorrectly sees a variable being used without
> initialization:
> drivers/scsi/lpfc/lpfc_nvme.c:2102:37: error: variable 'localport' is uninitialized when used here
>       [-Werror,-Wuninitialized]
>                 lport = (struct lpfc_nvme_lport *)localport->private;
>                                                   ^~~~~~~~~
> drivers/scsi/lpfc/lpfc_nvme.c:2059:38: note: initialize the variable 'localport' to silence this warning
>         struct nvme_fc_local_port *localport;
>                                             ^
>                                              = NULL
> 1 error generated.

Applied to 5.2/scsi-queue, thanks!

Martin K. Petersen	Oracle Linux Engineering

Powered by blists - more mailing lists