diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2015-03-13 16:08:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-14 14:38:32 -0400 |
commit | c1336ee472f83a90ede01fdae095ed5d0a2934c9 (patch) | |
tree | 4178d007c524fe51262b3698150c63d38591b521 /drivers/thermal | |
parent | 1149557d64c97dc9adf3103347a1c0e8c06d3b89 (diff) | |
download | blackbird-op-linux-c1336ee472f83a90ede01fdae095ed5d0a2934c9.tar.gz blackbird-op-linux-c1336ee472f83a90ede01fdae095ed5d0a2934c9.zip |
tipc: extract bundled buffers by cloning instead of copying
When we currently extract a bundled buffer from a message bundle in
the function tipc_msg_extract(), we allocate a new buffer and explicitly
copy the linear data area.
This is unnecessary, since we can just clone the buffer and do
skb_pull() on the clone to move the data pointer to the correct
position.
This is what we do in this commit.
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions