Skip to content

Commit d5c4128

Browse files
takaswieyaowenrui
authored and
yaowenrui
committed
firewire: core: correct documentation of fw_csr_string() kernel API
stable inclusion from stable-5.10.210 commit 6717c593c7cf003d65b8a8a77ab320ff752262ab category: bugfix issue: #IAOD4C CVE: NA Signed-off-by: yaowenrui <[email protected]> --------------------------------------- commit 5f9ab17394f831cb7986ec50900fa37507a127f1 upstream. Against its current description, the kernel API can accepts all types of directory entries. This commit corrects the documentation. Cc: [email protected] Fixes: 3c2c58c ("firewire: core: fw_csr_string addendum") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Sakamoto <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: yaowenrui <[email protected]>
1 parent 8d5bb78 commit d5c4128

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/firewire/core-device.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@ static int textual_leaf_to_string(const u32 *block, char *buf, size_t size)
100100
* @buf: where to put the string
101101
* @size: size of @buf, in bytes
102102
*
103-
* The string is taken from a minimal ASCII text descriptor leaf after
104-
* the immediate entry with @key. The string is zero-terminated.
105-
* An overlong string is silently truncated such that it and the
106-
* zero byte fit into @size.
103+
* The string is taken from a minimal ASCII text descriptor leaf just after the entry with the
104+
* @key. The string is zero-terminated. An overlong string is silently truncated such that it
105+
* and the zero byte fit into @size.
107106
*
108107
* Returns strlen(buf) or a negative error code.
109108
*/

0 commit comments

Comments
 (0)