forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitf7b8863
fs/libfs.c: fix simple_attr_write() on 32bit machines
Assume that /sys/kernel/debug/dummy64 is debugfs file created bydebugfs_create_x64().# cd /sys/kernel/debug# echo 0x1234567812345678 > dummy64# cat dummy640x0000000012345678# echo 0x80000000 > dummy64# cat dummy640xffffffff80000000A value larger than INT_MAX cannot be written to the debugfs file createdby debugfs_create_u64 or debugfs_create_x64 on 32bit machine. Becausesimple_attr_write() uses simple_strtol() for the conversion.To fix this, use simple_strtoll() instead.Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>Cc: Greg Kroah-Hartman <gregkh@suse.de>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parente501f29 commitf7b8863
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | | - | |
| 825 | + | |
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
| |||
0 commit comments
Comments
(0)