Re: [PATCH] input: handle sysfs errors

From: Dmitry Torokhov
Date: Tue Oct 10 2006 - 09:59:17 EST


On 10/10/06, Jeff Garzik <jeff@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/