[PATCH 0/2] Fix kobject_add refcount imbalance on block layer

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

 



kobject_add increments the parent kobj refcount, but forget to release it
after err return, it will lead to a memory leak.

Lin Yi (2):
  block :blk-sysfs :fix kobj refcount imbalance on the err return path
  block :blk-mq-sysfs :fix kobj refcount imbalance on err return path

 block/blk-mq-sysfs.c | 4 +++-
 block/blk-sysfs.c    | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

-- 
1.9.1





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux