Re: [PATCH] 2.6.19-rc2-mm2 sysfs: sysfs_write_file() writes zero terminated data

From: balagi
Date: Thu Oct 26 2006 - 08:08:48 EST


Hello,

> Yeah, that might happen, but writing to a sysfs file again after the
> first time is not the normal case here. I'll add your patch to the
> queue to keep this from happening though, good catch.

If the patch is applied, the get_zeroed_page() call can be replaced
by __get_free_pages() to save some cpu time.

-Thomas









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