diff options
author | Chen Gang <[email protected]> | 2013-08-20 15:34:21 +0930 |
---|---|---|
committer | Rusty Russell <[email protected]> | 2013-08-20 15:37:46 +0930 |
commit | cc56ded3fdd365e07e03315379ee6612a68fd817 (patch) | |
tree | 0335af371e340556297fc4ac041f537e8ff2e5de /net/lapb/lapb_iface.c | |
parent | 5265fc6219ddbf8dfc9b18223448a4997fb06eae (diff) |
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 <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions