]> git.baikalelectronics.ru Git - kernel.git/commit
panasonic-laptop: use snprintf with PAGE_SIZE in sysfs attributes
authorHarald Welte <laforge@gnumonks.org>
Wed, 14 Jan 2009 06:01:17 +0000 (14:01 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 4 Apr 2009 03:43:02 +0000 (23:43 -0400)
commit45febe832b45c691960cbdeeb4e0c28886b9028d
treed56f5fa22fa4d82318e4e611ab5285ba5c5a5c1d
parentc30a71d7d772b7abe53effe9046a8b1f04d927ca
panasonic-laptop: use snprintf with PAGE_SIZE in sysfs attributes

Instead of just sprintf() into the page-sized buffer provided
by the sysfs/device_attribute API, we use snprintf with PAGE_SIZE
as an additional safeguard.

Signed-off-by: Martin Lucina <mato@kotelna.sk>
Signed-off-by: Harald Welte <laforge@gnumonks.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/panasonic-laptop.c