lkml.org 
[lkml]   [2009]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Libertas: Association request to the driver failed
    Date
    On Sunday 09 August 2009 13:11:20 Roel Kluin wrote:
    > @@ -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.


    \
     
     \ /
      Last update: 2009-08-09 13:13    [W:2.498 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site