Re: [PATCH] pci: keep pci device resource name pointer right.

From: Linus Torvalds
Date: Sat Apr 18 2009 - 16:47:02 EST




On Fri, 17 Apr 2009, Yinghai Lu wrote:
>
> it turns that we need to reget res->name because dev->dev.kobj name is changed
> after device_add.

Can we not make the rule be that the name should just be set before?

IOW, there is something else broken, I think. Rather than put this ugly
band-aid, why now make sure that whoever had that broken name fixes it?

Linus
--
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/