]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/proc/array.c: set overflow flag in case of error
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 21 Oct 2015 22:03:48 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:48 +0000 (09:03 +1100)
commitd0042ebfd4c54ce936cb32695d7900f1231b2271
treee588fd97793edf2888706f708d9795e02d0cf60d
parented46beea6813913bf30de95ed0a96f48c7ea4799
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>
fs/proc/array.c