]> Git Repo - linux.git/commit
panasonic-laptop: use snprintf with PAGE_SIZE in sysfs attributes
authorHarald Welte <[email protected]>
Wed, 14 Jan 2009 06:01:17 +0000 (14:01 +0800)
committerLen Brown <[email protected]>
Sat, 4 Apr 2009 03:43:02 +0000 (23:43 -0400)
commitba256b41bd58f0821c9c0e203982fb260f09bdeb
treed56f5fa22fa4d82318e4e611ab5285ba5c5a5c1d
parentc542aadeb4700bc316834d862d52ba3d2664f13a
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 <[email protected]>
Signed-off-by: Harald Welte <[email protected]>
Signed-off-by: Len Brown <[email protected]>
drivers/platform/x86/panasonic-laptop.c
This page took 0.069688 seconds and 4 git commands to generate.