summaryrefslogtreecommitdiff
path: root/fs/dnotify.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-05-15 20:52:41 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-16 01:20:06 (GMT)
commita76bfd0da2321ed0a978ccbef192856ce7ed687a (patch)
treeeb9e9b10f8b500bdf55831e780a2658a2486b715 /fs/dnotify.c
parente0df154f45e40677781e971daec6c430cb34716b (diff)
downloadlinux-fsl-qoriq-a76bfd0da2321ed0a978ccbef192856ce7ed687a.tar.xz
initcalls: Fix m68k build and possible buffer overflow
This patch fixes a build bug on m68k - gcc decides to emit a call to the strlen library function, which we don't implement. More importantly - my previous patch "init: don't lose initcall return values" (commit e662e1cfd434aa234b72fbc781f1d70211cb785b) had introduced potential buffer overflow by wrong calculation of string accumulator size. Use strlcat() instead, fixing both bugs. Many thanks Andreas Schwab and Geert Uytterhoeven for helping to catch and fix the bug. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/dnotify.c')
0 files changed, 0 insertions, 0 deletions