diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-15 20:40:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-15 20:40:28 -0500 |
commit | a68db9cb858d10820add66682ad4d412f9914288 (patch) | |
tree | e17537ba2c11e0fd01dca906fb8dccc8576dfaf1 /drivers/firewire/core-device.c | |
parent | 7051d8e6308640aaee2f9d45d0ceaad3a4ee8a78 (diff) | |
parent | d737d7da8e7e931360282199341f44ac0803c837 (diff) |
Merge tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394
Pull firewire updates from Stefan Richter:
"IEEE 1394 subsystem updates:
- clean up firewire-ohci's longlived vm-mapping
- use target instance lock instead of core lock in firewire-sbp2"
* tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394:
firewire: sbp2: replace card lock by target lock
firewire: sbp2: replace some spin_lock_irqsave by spin_lock_irq
firewire: sbp2: protect a reference counter properly
firewire: core: document fw_csr_string's truncation of long strings
firewire: ohci: replace vm_map_ram() with vmap()
Diffstat (limited to 'drivers/firewire/core-device.c')
-rw-r--r-- | drivers/firewire/core-device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c index 2c6d5e118ac1..f9e3aee6a211 100644 --- a/drivers/firewire/core-device.c +++ b/drivers/firewire/core-device.c | |||
@@ -115,6 +115,9 @@ static int textual_leaf_to_string(const u32 *block, char *buf, size_t size) | |||
115 | * | 115 | * |
116 | * The string is taken from a minimal ASCII text descriptor leaf after | 116 | * The string is taken from a minimal ASCII text descriptor leaf after |
117 | * the immediate entry with @key. The string is zero-terminated. | 117 | * the immediate entry with @key. The string is zero-terminated. |
118 | * An overlong string is silently truncated such that it and the | ||
119 | * zero byte fit into @size. | ||
120 | * | ||
118 | * Returns strlen(buf) or a negative error code. | 121 | * Returns strlen(buf) or a negative error code. |
119 | */ | 122 | */ |
120 | int fw_csr_string(const u32 *directory, int key, char *buf, size_t size) | 123 | int fw_csr_string(const u32 *directory, int key, char *buf, size_t size) |