fs/proc/array.c: set overflow flag in case of error
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 7 Nov 2015 00:30:03 +0000 (16:30 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
commit3a49f3d2a10dfb27411d321900197a3d6c52405b
tree0f7073139fddf2dc6d1b1166a4d87458d3836ede
parent1965c8b7ac7dd147663faf77a66a693ac3ddcb85
fs/proc/array.c: set overflow flag in case of error

For now in task_name() we ignore the return code of string_escape_str()
call.  This is not good if buffer suddenly becomes not big enough.  Do the
proper error handling there.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/array.c