ext4: correctly zero filename
authorJeroen Hofstee <jeroen@myspectrum.nl>
Mon, 9 Jun 2014 13:29:00 +0000 (15:29 +0200)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:27:05 +0000 (16:27 -0400)
commit46a5707d9c2eefa23e88f7c63999adb9190c5b46
tree7f2c704d8837f90d8d095dd435bfb6ffab96abb0
parent8b9cc866c10787b057b4ac91c8783cfa752f1151
ext4: correctly zero filename

Since ALLOC_CACHE_ALIGN_BUFFER declares a char* for filename
sizeof(filename) is not the size of the buffer. Use the already
known length instead.

cc: Uma Shankar <uma.shankar@samsung.com>
cc: Manjunatha C Achar <a.manjunatha@samsung.com>
cc: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Marek Vasut <marex@denx.de>
fs/ext4/ext4_write.c