]> git.neil.brown.name Git - history.git/commitdiff
[NET]: Size hh_cache->hh_data[] properly.
authorDavid S. Miller <davem@nuts.ninka.net>
Tue, 7 Oct 2003 01:25:15 +0000 (18:25 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Tue, 7 Oct 2003 01:25:15 +0000 (18:25 -0700)
include/linux/netdevice.h

index 5d244c615c9fee852e077aee21b90e8e8d90689c..03936a77f3da4d4f975e656e61e7da9987d695d6 100644 (file)
@@ -201,7 +201,7 @@ struct hh_cache
        (HH_DATA_MOD - ((__len) & (HH_DATA_MOD - 1)))
 #define HH_DATA_ALIGN(__len) \
        (((__len)+(HH_DATA_MOD-1))&~(HH_DATA_MOD - 1))
-       unsigned long   hh_data[HH_DATA_ALIGN(LL_MAX_HEADER)];
+       unsigned long   hh_data[HH_DATA_ALIGN(LL_MAX_HEADER) / sizeof(long)];
 };
 
 /* Reserve HH_DATA_MOD byte aligned hard_header_len, but at least that much.