diff mbox

[1/2] Phonet: include generic link-layer header size in MAX_PHONET_HEADER

Message ID 1224860139-23097-1-git-send-email-remi.denis-courmont@nokia.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

RĂ©mi Denis-Courmont Oct. 24, 2008, 2:55 p.m. UTC
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>
---
 include/net/phonet/phonet.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

David Miller Oct. 27, 2008, 6:06 a.m. UTC | #1
From: Remi Denis-Courmont <remi.denis-courmont@nokia.com>
Date: Fri, 24 Oct 2008 17:55:38 +0300

> 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>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/net/phonet/phonet.h b/include/net/phonet/phonet.h
index d4e7250..c6a2451 100644
--- a/include/net/phonet/phonet.h
+++ b/include/net/phonet/phonet.h
@@ -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