]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita26ee35e928bc33dd675ba0393b1d03d85b6c12d
tree41a285f44792037362bc4efaf938b73999b76bd1
parente1e354fe12d86e406ca6082fbcc3ba971a93627c
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