Skip to content

Fix kobject_add refcount imbalance on block layer

Lin Yi linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block :blk-sysfs :fix kobj refcount imbalance on the err return pathblock/blk-sysfs.c+1 -01 reply
2/2block :blk-mq-sysfs :fix kobj refcount imbalance on err return pathblock/blk-mq-sysfs.c+3 -12 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChaitanya Kulkarni
1/2R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
1.9.1