From: Al Viro Date: Sun, 23 Mar 2014 04:28:40 +0000 (-0400) Subject: make prepend_name() work correctly when called with negative *buflen X-Git-Tag: v3.14~19^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e825196d48d2b89a6ec3a8eff280098d2a78207e;p=pandora-kernel.git make prepend_name() work correctly when called with negative *buflen In all callchains leading to prepend_name(), the value left in *buflen is eventually discarded unused if prepend_name() has returned a negative. So we are free to do what prepend() does, and subtract from *buflen *before* checking for underflow (which turns into checking the sign of subtraction result, of course). Cc: stable@vger.kernel.org Signed-off-by: Al Viro --- Reading git-diff-tree failed