[BUG]scsi: bnx2fc: bnx2fc_els.c: two refcount leak in function bnx2fc_initiate_seq_cleanup and bnx2fc_eh_abort

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I found there are two possible refcount leak in the bnx2fc driver in v5.14-rc3:

In bnx2fc_initiate_seq_cleanup :
946: kref_get(&orig_io_req->refcount);

this refcnt increment won't be released in:
994: cleanup_err:
995: return rc;


similar issue happens in bnx2fc_eh_abort:
1161: kref_get(&io_req->refcount);
1187: return FAILED;

Is it a refcount leak or just a valid refcount increment?
Any feedback would be appreciated, thanks~ :)


Best wishes,
Lin Yi



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux