mbox series

[0/2] scsi: snic: fixes two source leaks

Message ID 20221103125938.124819-1-yangyingliang@huawei.com
Headers show
Series scsi: snic: fixes two source leaks | expand

Message

Yang Yingliang Nov. 3, 2022, 12:59 p.m. UTC
This patchset fixes a memory leak in error path insnic_tgt_create()
and a refcount leak in normal path.

Cc: Karan Tilak Kumar <kartilak@cisco.com>
Cc: Sesidhar Baddela <sebaddel@cisco.com>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>

Yang Yingliang (2):
  scsi: snic: fix possible memory leak in snic_tgt_create()
  scsi: snic: fix refcount leak of shost_gendev in normal path

 drivers/scsi/snic/snic_disc.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)