lkml.org 
[lkml]   [2005]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: BUG in i2c_detach_client
    Date
    Mystery solved.

    ERROR3:
    i2c_detach_client(data->lm75[1]); <-- HERE
    i2c_detach_client(data->lm75[0]);
    kfree(data->lm75[1]);
    kfree(data->lm75[0]);

    The missing i2c_detach_client call meant that data->lm75[1] was still on
    the list of i2c devices when it was freed. This was corrupting the list.
    The ERROR3 path now works on my kernel.

    Thanks for your help.
    Andrew
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-06-09 15:36    [W:3.278 / U:1.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site