Changeset 3922

Show
Ignore:
Timestamp:
09/29/04 20:03:48 (4 years ago)
Author:
khali
Message:

Rely on field ctl_name instead of procname to determine sysctl

table lengths. Reported by Louis-Martin Cote.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c/trunk/CHANGES

    r3917 r3922  
    2222  i2c-pport.c: Code cleanups 
    2323               Do not test lines, i2c-algo-bit already does 
     24  i2c-proc.c: Do not rely on procname but instead on ctl_name to determine 
     25              sysctl table lengths. (Louis-Martin Cote) 
    2426 
    25272.8.7 (20040611) 
  • i2c/trunk/kernel/i2c-proc.c

    r3908 r3922  
    146146 
    147147 free_slot: 
    148         while (ctl_template[len].procname) 
     148        while (ctl_template[len].ctl_name) 
    149149                len++; 
    150150        tbl = kmalloc(sizeof(*tbl) + sizeof(ctl_table) * (len + 1),