From: Jeff Layton Date: Fri, 24 May 2013 11:40:04 +0000 (-0400) Subject: cifs: fix potential buffer overrun when composing a new options string X-Git-Tag: v3.10-rc4~24^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=166faf21bd14bc5c5295a44874bf7f3930c30b20;p=pandora-kernel.git cifs: fix potential buffer overrun when composing a new options string Consider the case where we have a very short ip= string in the original mount options, and when we chase a referral we end up with a very long IPv6 address. Be sure to allow for that possibility when estimating the size of the string to allocate. Cc: Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed