Fix mtd valgrind warning
authorDan Ehrenberg <dehrenberg@chromium.org>
Thu, 16 Apr 2015 21:50:39 +0000 (14:50 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 16 Apr 2015 22:36:22 +0000 (16:36 -0600)
commit51e962a7610f1aa69ffe0374f92774fb83526dc7
tree4bc1d30daa1ac91b6f7796d727dc20c72169471f
parent4da24b69599f7f78dc1420345f91d90ec0cfe109
Fix mtd valgrind warning

strlen seems to operate in 32-bit chunks, but libmtd sometimes allocates
strings without that much padding. This patch adds something extra to
a string allocation so that the mtd ioengine is clean with respect
to valgrind memory access checks.

Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
lib/libmtd.c