Phonet: fix aligned-mode pipe socket buffer header reserve
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Tue, 15 Mar 2011 21:55:49 +0000 (14:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Mar 2011 21:55:49 +0000 (14:55 -0700)
commit638be344593b66ccca6802c6076a5b3d9200829d
tree41a285f44792037362bc4efaf938b73999b76bd1
parentbfd823bd74333615783d8108889814c6d82f2ab0
Phonet: fix aligned-mode pipe socket buffer header reserve

When the pipe uses aligned-mode data packets, we must reserve 4 bytes
instead of 3 for the pipe protocol header. Otherwise the Phonet header
would not be aligned, resulting in potentially corrupted headers with
later unaligned memory writes.

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/phonet/pep.c