From: Jon Paul Maloy Date: Fri, 25 Jul 2014 18:48:09 +0000 (-0400) Subject: tipc: make tipc_buf_append() more robust X-Git-Tag: cleanup-for-v3.18~108^2~72 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13e9b9972fa0f34059e737ae215a26e43966b46f;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed