diff options
author | Takashi Sakamoto <[email protected]> | 2024-02-05 15:04:48 +0900 |
---|---|---|
committer | Takashi Sakamoto <[email protected]> | 2024-03-11 10:38:13 +0900 |
commit | 04f082d39b99f0b7b4b1cada14280f41d99f1e1f (patch) | |
tree | 89f91f4ea7229ba3c57ecb905708194d372b87d5 | |
parent | d4db89c34521a83371fd46bea34834dff128a5cf (diff) |
firewire: core: fix build failure due to the caller of fw_csr_string()
A commit 47dc55181dcb ("firewire: core: search descriptor leaf just after
vendor directory entry in root directory") for v6.8-rc3 and a commit
67a5a58c0443 ("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]>
-rw-r--r-- | drivers/firewire/core-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c index a802c6d4f4fd..c0976f6268d3 100644 --- a/drivers/firewire/core-device.c +++ b/drivers/firewire/core-device.c @@ -366,7 +366,7 @@ static ssize_t show_text_leaf(struct device *dev, // in the root directory follows to the directory entry for vendor ID // instead of the immediate value for vendor ID. result = fw_csr_string(directories[i], CSR_DIRECTORY | attr->key, buf, - bufsize); + PAGE_SIZE - 1); if (result >= 0) ret = result; } |