lkml.org 
[lkml]   [2003]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: scsi_id segfault with udev-009
    From
    Date
    On Wed, 2003-12-17 at 20:17, Daniel Stekloff wrote:
    > On Wednesday 17 December 2003 09:29 am, Martin Schlemmer wrote:
    > > Hi
    > >
    > > Getting this with scsi_id and udev-009:
    >
    >
    > Hi,
    >
    > Scsi_id hasn't been changed to use the latest libsysfs changes. The
    > "directory" in the sysfs_class_device is now considered "private" and only
    > should be accessed using functions. Treating the structures as handles lets
    > us only load information when it's needed, reducing caching or stale
    > information and also helping performance.
    >
    > Here's the problem.
    >
    > static inline char *sysfs_get_attr(struct sysfs_class_device *dev,
    > const char *attr)
    > {
    > return sysfs_get_value_from_attributes(dev->directory->attributes,
    > attr);
    > }
    >
    > Please try this quick fix:
    >

    Yep, that fixes it, thanks. Btw, any reason it wont actually display
    anything ?


    Thanks,

    --

    Martin Schlemmer
    Gentoo Linux Developer, Desktop/System Team Developer
    Cape Town, South Africa


    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2005-03-22 13:59    [W:0.020 / U:29.620 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site