]> git.baikalelectronics.ru Git - kernel.git/commit
[CIFS] update limit for snprintf in cifs_construct_tcon
authorSteve French <sfrench@us.ibm.com>
Tue, 12 Jul 2011 18:24:43 +0000 (18:24 +0000)
committerSteve French <sfrench@us.ibm.com>
Tue, 12 Jul 2011 19:14:24 +0000 (19:14 +0000)
commit8e81e6e9869d4b21491daccf70241d17c05d766e
treeb9f057cb63be2fb16a48c5e1a0214dd4089d84c1
parenta24cbde5b4c0f7191bf7d3625fcc3d0d15c99885
[CIFS] update limit for snprintf in cifs_construct_tcon

In 5182bf156565 "Shrink stack space usage in cifs_construct_tcon" we
change the size of the username name buffer from MAX_USERNAME_SIZE
(256) to 28.  This call to snprintf() needs to be updated as well.
Reported by Dan Carpenter.

Reviewed-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c