summaryrefslogtreecommitdiffstats
path: root/init/init_task.c
diff options
context:
space:
mode:
authorJon Paul Maloy <jon.maloy@ericsson.com>2014-07-25 14:48:09 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-28 18:34:01 -0700
commit13e9b9972fa0f34059e737ae215a26e43966b46f (patch)
treec028b77384eec9c472b2a11bd41c3fa70d65e93a /init/init_task.c
parent3fd0202a0dfe07d255c5462d7d0e27673ca10430 (diff)
downloadop-kernel-dev-13e9b9972fa0f34059e737ae215a26e43966b46f.zip
op-kernel-dev-13e9b9972fa0f34059e737ae215a26e43966b46f.tar.gz
tipc: make tipc_buf_append() more robust
As per comment from David Miller, we try to make the buffer reassembly function more resilient to user errors than it is today. - We check that the "*buf" parameter always is set, since this is mandatory input. - We ensure that *buf->next always is set to NULL before linking in the buffer, instead of relying of the caller to have done this. - We ensure that the "tail" pointer in the head buffer's control block is initialized to NULL when the first fragment arrives. Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud