lkml.org 
[lkml]   [2006]   [Oct]   [10]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 10 Oct 2006 09:58:39 -0400
From"Dmitry Torokhov" <>
SubjectRe: [PATCH] input: handle sysfs errors
On 10/10/06, Jeff Garzik <jeff@garzik.org> wrote:
>> -       device_create_file(&serio->dev, &atkbd_attr_extra);
> -       device_create_file(&serio->dev, &atkbd_attr_scroll);
> -       device_create_file(&serio->dev, &atkbd_attr_set);
> -       device_create_file(&serio->dev, &atkbd_attr_softrepeat);
> -       device_create_file(&serio->dev, &atkbd_attr_softraw);
> +       err = device_create_file(&serio->dev, &atkbd_attr_extra);
> +       if (err) goto fail_serio;

I have a patch that converts atkbd to attribute group and also one
that handles errors from input_register_drevice. I will add sysfs
error checks there as well.

-- 
Dmitry
-
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: 2006-10-10 16:01    [from the cache]
©2003-2008