From: Jeff Layton Date: Wed, 27 Apr 2011 17:25:51 +0000 (-0400) Subject: cifs: change bleft in decode_unicode_ssetup back to signed type X-Git-Tag: v2.6.39-rc7~9^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfacf2225a955bea9c41c707fc72ba16009674a0;p=pandora-kernel.git cifs: change bleft in decode_unicode_ssetup back to signed type The buffer length checks in this function depend on this value being a signed data type, but 690c522fa converted it to an unsigned type. Also, eliminate a problem with the null termination check in the same function. cifs_strndup_from_ucs handles that situation correctly already, and the existing check could potentially lead to a buffer overrun since it increments bleft without checking to see whether it falls off the end of the buffer. Cc: stable@kernel.org Reported-and-Acked-by: David Howells Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed