Skip to content

Commit 04f082d

Browse files
committed
firewire: core: fix build failure due to the caller of fw_csr_string()
A commit 47dc551 ("firewire: core: search descriptor leaf just after vendor directory entry in root directory") for v6.8-rc3 and a commit 67a5a58 ("firewire: Kill unnecessary buf check in device_attribute.show") for v6.9 bring build failure in for-next tree due to the change of the name of local variable. This commit fixes it. Reported-by: Stephen Rothwell <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/ Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Sakamoto <[email protected]>
1 parent d4db89c commit 04f082d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firewire/core-device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static ssize_t show_text_leaf(struct device *dev,
366366
// in the root directory follows to the directory entry for vendor ID
367367
// instead of the immediate value for vendor ID.
368368
result = fw_csr_string(directories[i], CSR_DIRECTORY | attr->key, buf,
369-
bufsize);
369+
PAGE_SIZE - 1);
370370
if (result >= 0)
371371
ret = result;
372372
}

0 commit comments

Comments
 (0)