Skip to content

Commit b41d70c

Browse files
committed
Merge branch 'for-6.17/block' into for-next
* for-6.17/block: sunvdc: Balance device refcount in vdc_port_mpgroup_check
2 parents 6de88f3 + 63ce537 commit b41d70c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/block/sunvdc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,10 @@ static bool vdc_port_mpgroup_check(struct vio_dev *vdev)
957957
dev = device_find_child(vdev->dev.parent, &port_data,
958958
vdc_device_probed);
959959

960-
if (dev)
960+
if (dev) {
961+
put_device(dev);
961962
return true;
963+
}
962964

963965
return false;
964966
}

0 commit comments

Comments
 (0)