Commit e214a8cc7a81f20ed7cb4f6373cf15048556bbac

Authored by Remi Denis-Courmont
Committed by David S. Miller
1 parent f8d56f1771

Phonet: include generic link-layer header size in MAX_PHONET_HEADER

This fixes an OOPS in hard_header if a Phonet address is assigned to a
non-Phonet network interface.

Signed-off-by: Remi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

include/net/phonet/phonet.h
... ... @@ -27,7 +27,7 @@
27 27 * The lower layers may not require more space, ever. Make sure it's
28 28 * enough.
29 29 */
30   -#define MAX_PHONET_HEADER 8
  30 +#define MAX_PHONET_HEADER (8 + MAX_HEADER)
31 31  
32 32 /*
33 33 * Every Phonet* socket has this structure first in its