浏览代码

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>
Remi Denis-Courmont 16 年之前
父节点
当前提交
e214a8cc7a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/net/phonet/phonet.h

+ 1 - 1
include/net/phonet/phonet.h

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