From: Chen Gang Date: Tue, 20 Aug 2013 06:04:21 +0000 (+0930) Subject: kernel/module.c: use scnprintf() instead of sprintf() X-Git-Tag: v3.12-rc1~145^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc56ded3fdd365e07e03315379ee6612a68fd817;p=pandora-kernel.git kernel/module.c: use scnprintf() instead of sprintf() For some strings, they are permitted to be larger than PAGE_SIZE, so need use scnprintf() instead of sprintf(), or it will cause issue. One case is: if a module version is crazy defined (length more than PAGE_SIZE), 'modinfo' command is still OK (print full contents), but for "cat /sys/modules/'modname'/version", will cause issue in kernel. Signed-off-by: Chen Gang Signed-off-by: Rusty Russell --- Reading git-diff-tree failed