summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-08-11 21:09:27 +0900
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-08-12 07:49:38 +0900
commita563a7cb645a79a3a7e31bed8cbf95980ef5feb1 (patch)
treee521ce1264adc41e75f0862d679d39653b0d6c52 /tools/lib/python
parent87c48e54f28d410af0c12b5dd339307bb43abeea (diff)
downloadlinux-a563a7cb645a79a3a7e31bed8cbf95980ef5feb1.tar.gz
linux-a563a7cb645a79a3a7e31bed8cbf95980ef5feb1.zip
firewire: core: validate parent port count before allocating nodes in build_tree()
The node tree requires each child node to have exactly one port connected to a parent node, while the root node must have no such port. This can be validated by comparing the parent port count for a PHY with the rest of the self ID sequence. Currently, this validation is done after the node has been allocated. Move it before the allocation so that an invalid self ID sequence can cause an error without having to clean up the newly allocated node. Link: https://lore.kernel.org/r/20260811120928.700577-3-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions