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: <443fb75b-948b-430f-be33-170e6f592280@web.de>
Date: Thu, 25 Apr 2024 13:31:02 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Yongzhi Liu <hyperlyzcs@...il.com>,
 GR-QLogic-Storage-Upstream@...vell.com, linux-scsi@...r.kernel.org,
 kernel-janitors@...r.kernel.org,
 James Bottomley <James.Bottomley@...senPartnership.com>,
 "Martin K. Petersen" <martin.petersen@...cle.com>,
 Nilesh Javali <njavali@...vell.com>, Saurav Kashyap <skashyap@...vell.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
 Himanshu Madhani <himanshu.madhani@...cle.com>, huntazhang@...cent.com,
 jitxie@...cent.com
Subject: Re: [PATCH] scsi: qla2xxx: Fix double free of fcport in error
 handling path

…
> Fix this by cleaning up the redundant qla2x00_free_fcport().
…

I suggest to avoid duplicate error handling code a bit more
also for the implementation of the function “qla24xx_els_dcmd_iocb”.
https://elixir.bootlin.com/linux/v6.9-rc5/source/drivers/scsi/qla2xxx/qla_iocb.c#L2751

See also:
https://wiki.sei.cmu.edu/confluence/display/c/MEM12-C.+Consider+using+a+goto+chain+when+leaving+a+function+on+error+when+using+and+releasing+resources

Regards,
Markus

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ