]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Phonet: include generic link-layer header size in MAX_PHONET_HEADER
authorRemi Denis-Courmont <remi.denis-courmont@nokia.com>
Mon, 27 Oct 2008 06:06:31 +0000 (23:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Oct 2008 06:06:31 +0000 (23:06 -0700)
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>
include/net/phonet/phonet.h

index d4e72508e145a8f743f6e02ec4d3a7ea81cdd7a2..c6a24518446039844f384e31265df66b3c01791f 100644 (file)
@@ -27,7 +27,7 @@
  * The lower layers may not require more space, ever. Make sure it's
  * enough.
  */
-#define MAX_PHONET_HEADER      8
+#define MAX_PHONET_HEADER      (8 + MAX_HEADER)
 
 /*
  * Every Phonet* socket has this structure first in its