Thread (22 messages) flat view 22 messages, 8 authors, 2009-08-12

Re: Libertas: Association request to the driver failed

From: Michael Buesch <hidden>
Date: 2009-08-09 11:11:21
Also in: lkml

On Sunday 09 August 2009 13:11:20 Roel Kluin wrote:
quoted hunk ↗ jump to hunk
@@ -43,21 +44,21 @@ static int get_common_rates(struct lbs_private *priv,
 	u16 *rates_size)
 {
 	u8 *card_rates = lbs_bg_rates;
-	size_t num_card_rates = sizeof(lbs_bg_rates);
 	int ret = 0, i, j;
-	u8 tmp[30];
+	u8 tmp[*rates_size * ARRAY_SIZE(lbs_bg_rates)];
Is it a good idea to use dynamic stack arrays in the kernel?
What about kmalloc for dynamic allocations?

-- 
Greetings, Michael.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help