Re: [PATCH] driver core: don't pass cls->name as format string insysdev_class_register()

From: Greg KH
Date: Sat Dec 13 2008 - 13:23:26 EST


On Sat, Dec 13, 2008 at 06:34:00PM +0800, tom.leiming@xxxxxxxxx wrote:
> From: Ming Lei <tom.leiming@xxxxxxxxx>
>
> If cls->name contains substring which can be interpreted as
> format,maybe it causes oops, so fix it.

Why not fix the code that would set cls->name to such a wrong field? I
don't see any in-kernel code that does this, do you?

thanks,

greg k-h
--
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/