-
Alessandro Rubini authored
After correctly allocating the the manufacturer or device name, and correctly copying the not-null-terminated string from ipmi-fru, I put the termination '\0' at string[len + 1] . If you build a recent kernel under slob (which is the default), it may fail miserably at unexpected places. For example, if your string is 15 bytes, I allocated 16 but wrote to the 17th. slob has 16-byte alloc areas, and so I was corrupting the next area. This never happened with slab (which I prefer and run) because the smalles allocation chunk there is 32 bytes -- I would experience the same with a 31-long manufacturer or device name. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
0d1aca08
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
include/linux | ||
.gitignore | ||
Makefile | ||
fmc-chardev.c | ||
fmc-core.c | ||
fmc-dump.c | ||
fmc-fakedev.c | ||
fmc-match.c | ||
fmc-sdb.c | ||
fmc-trivial.c | ||
fmc-write-eeprom.c | ||
fru-parse.c |