All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix kobject_add refcount imbalance on block layer
@ 2019-06-04  4:00 Lin Yi
  2019-06-04  4:02 ` [PATCH 1/2] block :blk-sysfs :fix kobj refcount imbalance on the err return path Lin Yi
  2019-06-04  4:05 ` [PATCH 2/2] block :blk-mq-sysfs :fix kobj refcount imbalance on " Lin Yi
  0 siblings, 2 replies; 6+ messages in thread
From: Lin Yi @ 2019-06-04  4:00 UTC (permalink / raw)
  To: bvanassche, axboe; +Cc: linux-block

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-04  5:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-04  4:00 [PATCH 0/2] Fix kobject_add refcount imbalance on block layer Lin Yi
2019-06-04  4:02 ` [PATCH 1/2] block :blk-sysfs :fix kobj refcount imbalance on the err return path Lin Yi
2019-06-04  5:36   ` Chaitanya Kulkarni
2019-06-04  4:05 ` [PATCH 2/2] block :blk-mq-sysfs :fix kobj refcount imbalance on " Lin Yi
2019-06-04  5:33   ` Chaitanya Kulkarni
2019-06-04  5:34   ` Chaitanya Kulkarni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.