Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 1cfb751

Browse files
committed
Merge tag 'firewire-updates-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394
Pull firewire update from Takashi Sakamoto: "A slight change for flexible length of array in core function. Kees Cook provides a patch to annotate the array embedded in fw_node structure referring to structure member for the length of array. The annotation would be defined by future extension of C compilers, and used for access bound-check at run-time enabled by UBSAN and FORTIFY_SOURCE" * tag 'firewire-updates-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394: firewire: Annotate struct fw_node with __counted_by
2 parents 3d05e49 + c12d7aa commit 1cfb751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firewire/core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ struct fw_node {
191191
/* Upper layer specific data. */
192192
void *data;
193193

194-
struct fw_node *ports[];
194+
struct fw_node *ports[] __counted_by(port_count);
195195
};
196196

197197
static inline struct fw_node *fw_node_get(struct fw_node *node)

0 commit comments

Comments
 (0)