Skip to contentSkip to conversation

ipw2100 wireless driver

DISCUSSION Andi Kleen 2 participants 2 messages Jul 14, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#2 lore raw
Quoted 2 lines · Vojtech Pavlik

Wouldn't "struct sk_buff **fragments" be a more correct fix?

No, that would be a pointer to an array instead of the array itself.

Completely different thing.

The best would be struct sk_buff *fragments[0]; [] here is C99, which 2.95 didn't even attempt to support.

-Andi

Quoted 8 lines
Quoted 8 lines
ieee80211.h +1 -1
@@ -440,7 +440,7 @@
 	u16 reserved;
 	u16 frag_size;
 	u16 payload_size;
-	struct sk_buff *fragments[];
+	struct sk_buff *fragments[1];
#3 lore raw
Quoted 7 lines · Andi Kleen
Quoted 2 lines · Vojtech Pavlik

Wouldn't "struct sk_buff **fragments" be a more correct fix?

No, that would be a pointer to an array instead of the array itself.

Completely different thing.

Indeed.

Quoted 1 line

The best would be struct sk_buff *fragments[0];

Agreed. It's not a very nice construction anyway.

Quoted 15 lines

[] here is C99, which 2.95 didn't even attempt to support.

-Andi

Quoted 8 lines
Quoted 8 lines
ieee80211.h +1 -1
@@ -440,7 +440,7 @@
 	u16 reserved;
 	u16 frag_size;
 	u16 payload_size;
-	struct sk_buff *fragments[];
+	struct sk_buff *fragments[1];
Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR