From: Al Viro Date: Wed, 17 Dec 2014 10:29:16 +0000 (-0500) Subject: unfuck binfmt_misc.c (broken by commit e6084d4) X-Git-Tag: omap-for-v3.19/fixes-rc1~15^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d65cf10e3d7747033b83fa18c5f3d2a498f66bc;p=pandora-kernel.git unfuck binfmt_misc.c (broken by commit e6084d4) scanarg(s, del) never returns s; the empty field results in s + 1. Restore the correct checks, and move NUL-termination into scanarg(), while we are at it. Incidentally, mixing "coding style cleanups" (for small values of cleanup) with functional changes is a Bad Idea(tm)... Signed-off-by: Al Viro --- Reading git-diff-tree failed