caif: Bugfix - use MSG_TRUNC in receive
commitdcda138d2f27e32bd0d6250cc42839b0d70bb4b8
authorSjur Braendeland <sjur.brandeland@stericsson.com>
Fri, 21 May 2010 02:16:12 +0000 (21 02:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2010 06:57:43 +0000 (23 23:57 -0700)
tree679ff3b9ef79f7fbb5821bff2d050fd0638d2366
parenta9a8f1070d8733b37418b3a2d58df4e771b61f88
caif: Bugfix - use MSG_TRUNC in receive

Fixed handling when skb don't fit in user buffer,
instead of returning -EMSGSIZE, the buffer is truncated (just
as unix seqpakcet does).

Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_socket.c