Re: [PATCH] scsi: hpsa: Fix possible memory leak in hpsa_init_one()

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

 



Yuan,

> The hpda_alloc_ctlr_info() allocates h and its field reply_map,
> however in hpsa_init_one(), if alloc_percpu() failed, the
> hpsa_init_one() jumps to clean1 directly, which frees h and leaks the
> h->reply_map.  Fix by calling hpda_free_ctlr_info() to release
> h->replay_map and h instead free h directly.

Applied to 6.2/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering



[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